diff --git a/src/components/TrialsTab/index.vue b/src/components/TrialsTab/index.vue index 7ea17661..2549e6fc 100644 --- a/src/components/TrialsTab/index.vue +++ b/src/components/TrialsTab/index.vue @@ -149,6 +149,7 @@ export default { return isShow }, goBack() { + zzSessionStorage.removeItem('lastWorkbench') this.$router.push({ path: '/trials/trials-list' }) }, selectTrials(v) { diff --git a/src/components/toggleRole/index.vue b/src/components/toggleRole/index.vue index 7d508b3a..48db5756 100644 --- a/src/components/toggleRole/index.vue +++ b/src/components/toggleRole/index.vue @@ -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) diff --git a/src/views/trials/trials-myinfo/account.vue b/src/views/trials/trials-myinfo/account.vue index 3bbfe432..8c27335f 100644 --- a/src/views/trials/trials-myinfo/account.vue +++ b/src/views/trials/trials-myinfo/account.vue @@ -231,6 +231,7 @@ export default { this.$store .dispatch('user/loginByRole', { userRoleId: this.userRoleId }) .then((res) => { + zzSessionStorage.removeItem('lastWorkbench') window.location.reload() }) .catch(() => {