fix: 问题处理

This commit is contained in:
From-wh 2023-04-23 17:43:47 +08:00
parent 1be3e759e3
commit 3940ef3e39
2 changed files with 14 additions and 0 deletions

View File

@ -589,6 +589,7 @@ export default {
syncRoute(this.app_name).then((res) => {
this.getInterfaceList('one');
this.$Message.success(res.msg);
this.$Modal.remove();
});
},
});

View File

@ -143,6 +143,19 @@ export default {
this.bus.$emit('routesListChange');
});
},
formatTwoStageRoutes(arr) {
if (arr.length <= 0) return false;
const newArr = [];
const cacheList = [];
arr.forEach((v) => {
if (v && v.meta && v.meta.keepAlive) {
newArr.push({ ...v });
cacheList.push(v.name);
this.$store.dispatch('keepAliveNames/setCacheKeepAlive', cacheList);
}
});
return newArr;
},
},
};
</script>