切换角色、项目返回时清除项目路由缓存
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2025-02-10 10:42:10 +08:00
parent 361aed4a0c
commit 2952762ce7
3 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,7 @@ export default {
return isShow
},
goBack() {
zzSessionStorage.removeItem('lastWorkbench')
this.$router.push({ path: '/trials/trials-list' })
},
selectTrials(v) {

View File

@ -92,6 +92,7 @@ export default {
try {
if (!this.form.userRoleId)
return this.$message.warning(this.$t('toggleRole:ruleMessage:select'))
zzSessionStorage.removeItem('lastWorkbench')
this.$emit('save', this.form.userRoleId)
} catch (err) {
console.log(err)

View File

@ -231,6 +231,7 @@ export default {
this.$store
.dispatch('user/loginByRole', { userRoleId: this.userRoleId })
.then((res) => {
zzSessionStorage.removeItem('lastWorkbench')
window.location.reload()
})
.catch(() => {