feat : 动态前置流程

This commit is contained in:
clay
2024-07-24 21:21:36 +08:00
parent d769ec9755
commit fc0451ca32
4 changed files with 76 additions and 69 deletions

View File

@@ -141,8 +141,10 @@ const handleReject = async () => {
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
if (res.code === 1000){
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
}
}
const handleAgree = async () => {
@@ -158,8 +160,10 @@ const handleAgree = async () => {
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
if (res.code === 1000){
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
back()
}
}
</script>