瀏覽代碼

Merge branch 'master' of http://git.cc-lotus.info/count/webnew-count

wuhongyu 5 年之前
父節點
當前提交
191dc53a82
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/views/news/listDetail.vue

+ 6 - 5
src/views/news/listDetail.vue

@@ -67,11 +67,10 @@ export default {
       menuColor: 'rgb(254, 149, 14)',
       menuColor: 'rgb(254, 149, 14)',
       menuIndex: '0',
       menuIndex: '0',
       columnName: '',
       columnName: '',
-      display: '',
+      display: '0',
     };
     };
   },
   },
   created() {
   created() {
-    this.$set(this, `display`, this.displays);
     this.searchInfo();
     this.searchInfo();
   },
   },
   methods: {
   methods: {
@@ -85,19 +84,21 @@ export default {
       this.menuIndex = index;
       this.menuIndex = index;
       this.columnName = name;
       this.columnName = name;
       this.menuColor = 'rgb(254, 149, 14)';
       this.menuColor = 'rgb(254, 149, 14)';
-      this.display = '0';
     },
     },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),
+    dispaly() {
+      return this.$route.query.display;
+    },
     pageTitle() {
     pageTitle() {
       return `${this.$route.meta.title}`;
       return `${this.$route.meta.title}`;
     },
     },
     col_name() {
     col_name() {
       return this.$route.query.col_name;
       return this.$route.query.col_name;
     },
     },
-    displays() {
-      return this.$route.query.display;
+    id() {
+      return this.$route.query.id;
     },
     },
   },
   },
   metaInfo() {
   metaInfo() {