张延森 преди 4 години
родител
ревизия
ff0e1db5b8
променени са 2 файла, в които са добавени 3 реда и са изтрити 14 реда
  1. 2
    2
      src/app.js
  2. 1
    12
      src/pages/HuiQuanYi/OwnersNews/NewsDetail/index.vue

+ 2
- 2
src/app.js Целия файл

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

+ 1
- 12
src/pages/HuiQuanYi/OwnersNews/NewsDetail/index.vue Целия файл

@@ -18,28 +18,17 @@
18 18
 <script>
19 19
 import { getCurrentInstance } from "@tarojs/taro"
20 20
 import { createNamespacedHelpers } from "vuex"
21
-import Markdown from '@/components/Markdown'
22
-// const towxml = require('../../../../towxml/index')
23 21
 
24 22
 const { mapActions: mapIndexActions } = createNamespacedHelpers("index")
25 23
 export default {
26 24
   name: "ZiXunXiangQing",
27
-  components: {
28
-    Markdown
29
-  },
30 25
   data() {
31 26
     return {
32 27
       CurrnetId: null,
33 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 32
   created() {
44 33
     this.CurrnetId = getCurrentInstance().router.params.id
45 34
     this.$authed(() => {