refactor: 统一替换登录跳转逻辑为通用方法
将项目内多处手动调用$refs.login.open的登录跳转逻辑,统一替换为新增的redirectTologin通用方法,简化代码并提升维护性,同时统一处理了延迟和nextTick调用逻辑。
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.loadingCover.hide();
|
||||
this.$refs.login.open(this.$util.getCurrentRoute().path, 'redirectTo');
|
||||
this.redirectTologin(this.$util.getCurrentRoute().path);
|
||||
})
|
||||
}
|
||||
this.getTransactionAgreement();
|
||||
|
||||
Reference in New Issue
Block a user