Procházet zdrojové kódy

专辑详情页编辑问题

赵志鹏 před 1 rokem
rodič
revize
f0d9159ada

+ 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) {