张延森 4 years ago
parent
commit
ff0e1db5b8
2 changed files with 3 additions and 14 deletions
  1. 2
    2
      src/app.js
  2. 1
    12
      src/pages/HuiQuanYi/OwnersNews/NewsDetail/index.vue

+ 2
- 2
src/app.js View File

1
 import Taro from '@tarojs/taro'
1
 import Taro from '@tarojs/taro'
2
 import Vue from 'vue'
2
 import Vue from 'vue'
3
 import BasicLayout from '@/components/Layout/Basic'
3
 import BasicLayout from '@/components/Layout/Basic'
4
-// import Markdown from '@/components/Markdown'
4
+import Markdown from '@/components/Markdown'
5
 import { vueAuthPlugin } from '@/util/auth-plugin'
5
 import { vueAuthPlugin } from '@/util/auth-plugin'
6
 import store from './store/index'
6
 import store from './store/index'
7
 
7
 
16
 
16
 
17
 Vue.use(vueAuthPlugin)
17
 Vue.use(vueAuthPlugin)
18
 Vue.component('BasicLayout', BasicLayout)
18
 Vue.component('BasicLayout', BasicLayout)
19
-// Vue.component('Markdown', Markdown)
19
+Vue.component('Markdown', Markdown)
20
 
20
 
21
 const App = new Vue({
21
 const App = new Vue({
22
   store,
22
   store,

+ 1
- 12
src/pages/HuiQuanYi/OwnersNews/NewsDetail/index.vue View File

18
 <script>
18
 <script>
19
 import { getCurrentInstance } from "@tarojs/taro"
19
 import { getCurrentInstance } from "@tarojs/taro"
20
 import { createNamespacedHelpers } from "vuex"
20
 import { createNamespacedHelpers } from "vuex"
21
-import Markdown from '@/components/Markdown'
22
-// const towxml = require('../../../../towxml/index')
23
 
21
 
24
 const { mapActions: mapIndexActions } = createNamespacedHelpers("index")
22
 const { mapActions: mapIndexActions } = createNamespacedHelpers("index")
25
 export default {
23
 export default {
26
   name: "ZiXunXiangQing",
24
   name: "ZiXunXiangQing",
27
-  components: {
28
-    Markdown
29
-  },
30
   data() {
25
   data() {
31
     return {
26
     return {
32
       CurrnetId: null,
27
       CurrnetId: null,
33
       Info: null
28
       Info: null
34
     }
29
     }
35
   },
30
   },
36
-  computed: {
37
-    nodes() {
38
-      // const res = towxml((this.Info || {}).content, 'markdown')
39
-      // console.log(res)
40
-      // return res
41
-    }
42
-  },
31
+  computed: {},
43
   created() {
32
   created() {
44
     this.CurrnetId = getCurrentInstance().router.params.id
33
     this.CurrnetId = getCurrentInstance().router.params.id
45
     this.$authed(() => {
34
     this.$authed(() => {