切换角色、项目返回时清除项目路由缓存
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
361aed4a0c
commit
2952762ce7
|
@ -149,6 +149,7 @@ export default {
|
|||
return isShow
|
||||
},
|
||||
goBack() {
|
||||
zzSessionStorage.removeItem('lastWorkbench')
|
||||
this.$router.push({ path: '/trials/trials-list' })
|
||||
},
|
||||
selectTrials(v) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -231,6 +231,7 @@ export default {
|
|||
this.$store
|
||||
.dispatch('user/loginByRole', { userRoleId: this.userRoleId })
|
||||
.then((res) => {
|
||||
zzSessionStorage.removeItem('lastWorkbench')
|
||||
window.location.reload()
|
||||
})
|
||||
.catch(() => {
|
||||
|
|
Loading…
Reference in New Issue