切换角色、项目返回时清除项目路由缓存
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
|
return isShow
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
this.$router.push({ path: '/trials/trials-list' })
|
this.$router.push({ path: '/trials/trials-list' })
|
||||||
},
|
},
|
||||||
selectTrials(v) {
|
selectTrials(v) {
|
||||||
|
|
|
@ -92,6 +92,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
if (!this.form.userRoleId)
|
if (!this.form.userRoleId)
|
||||||
return this.$message.warning(this.$t('toggleRole:ruleMessage:select'))
|
return this.$message.warning(this.$t('toggleRole:ruleMessage:select'))
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
this.$emit('save', this.form.userRoleId)
|
this.$emit('save', this.form.userRoleId)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|
|
@ -231,6 +231,7 @@ export default {
|
||||||
this.$store
|
this.$store
|
||||||
.dispatch('user/loginByRole', { userRoleId: this.userRoleId })
|
.dispatch('user/loginByRole', { userRoleId: this.userRoleId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
Loading…
Reference in New Issue