guhongwei 4 vuotta sitten
vanhempi
commit
e628120c3e
2 muutettua tiedostoa jossa 5 lisäystä ja 11 poistoa
  1. 5 5
      src/views/journ/detail.vue
  2. 0 6
      src/views/journ/index.vue

+ 5 - 5
src/views/journ/detail.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24" class="detail">
         <el-col :span="24" class="top">
-          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
+          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow" @onClickLeft="onClickLeft"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">
           <el-col :span="24" class="title">{{ info.title }}</el-col>
@@ -29,7 +29,6 @@
 import { mapState, createNamespacedHelpers } from 'vuex';
 import NavBar from '@/layout/common/topInfo.vue';
 const { mapActions: journnews } = createNamespacedHelpers('journnews');
-
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -63,6 +62,10 @@ export default {
         this.$set(this, `info`, res.data);
       }
     },
+    // 返回
+    onClickLeft() {
+      this.$router.push({ path: '/journ/index' });
+    },
   },
   computed: {
     ...mapState(['user']),
@@ -74,9 +77,6 @@ export default {
     this.title = this.$route.meta.title;
     this.isleftarrow = this.$route.meta.isleftarrow;
   },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
 };
 </script>
 

+ 0 - 6
src/views/journ/index.vue

@@ -36,9 +36,6 @@ const { mapActions: journnews } = createNamespacedHelpers('journnews');
 import NavBar from '@/layout/common/topInfo.vue';
 import footInfo from '@/layout/common/footInfo.vue';
 import kjzxList from './parts/kjzxList.vue';
-// import gzdtList from './parts/gzdtList.vue';
-// import tztgList from './parts/tztgList.vue';
-// import jsqyList from './parts/jsqyList.vue';
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -49,9 +46,6 @@ export default {
     NavBar,
     footInfo,
     kjzxList,
-    // gzdtList,
-    // tztgList,
-    // jsqyList,
   },
   data: function() {
     return {