From 2952762ce7bdd623b1dec0c12a2d8b2934bc4f8a Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 10 Feb 2025 10:42:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=A7=92=E8=89=B2=E3=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=BF=94=E5=9B=9E=E6=97=B6=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=B7=AF=E7=94=B1=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TrialsTab/index.vue | 1 + src/components/toggleRole/index.vue | 1 + src/views/trials/trials-myinfo/account.vue | 1 + 3 files changed, 3 insertions(+) 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(() => {