diff --git a/frontend/src/views/link/index.vue b/frontend/src/views/link/index.vue index e88b771fa8..85a6502241 100644 --- a/frontend/src/views/link/index.vue +++ b/frontend/src/views/link/index.vue @@ -1,7 +1,7 @@ @@ -49,6 +49,9 @@ export default { this.showError() }) }, + refreshToken() { + this.loadInit() + }, // 显示无效链接 showError() { diff --git a/frontend/src/views/link/pwd/index.vue b/frontend/src/views/link/pwd/index.vue index f1e01a4673..47c4b2769b 100644 --- a/frontend/src/views/link/pwd/index.vue +++ b/frontend/src/views/link/pwd/index.vue @@ -96,7 +96,8 @@ export default { if (!res.data) { this.msg = this.$t('pblink.pwd_error') } else { - window.location.reload() + // window.location.reload() + this.$emit('fresh-token') } }) })