浏览代码

专辑详情页编辑问题

赵志鹏 1 年之前
父节点
当前提交
f0d9159ada
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 4 1
      src/views/modules/knowledge/album/detail.vue
  2. 9 1
      src/views/modules/knowledge/warehouse/contentList.vue

+ 4 - 1
src/views/modules/knowledge/album/detail.vue

@@ -655,7 +655,10 @@ export default {
     goBack(){
       SessionCache.deleteCache('albumDetail')
       if(this.$route.query.isAdd==1){
-        this.$router.back()
+        // this.$router.back()
+        this.$router.replace({
+          name: 'albumIndex',
+        })
       }else{
         this.isAdd = false
       }

+ 9 - 1
src/views/modules/knowledge/warehouse/contentList.vue

@@ -224,7 +224,15 @@ export default {
       }
       SessionCache.setCache('albumDetail', data)
       this.$store.commit('include/clearInclude')
-      this.$router.back()
+      // this.$router.back()
+      this.$router.replace({
+        name: 'albumDetail',
+        query: {
+          pkId: this.pkId,
+          isAdd: 1,
+          scope: this.scope
+        }
+      })
    },
    //分类修改数据
    onChange(value, selectedOptions) {