|
@@ -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>
|
|
|
|