feat: 授权后token刷新保持

This commit is contained in:
duanshuwen
2025-11-18 19:40:28 +08:00
parent de272b1160
commit de412aed9c
9 changed files with 40 additions and 45 deletions

View File

@@ -55,15 +55,6 @@
>
手机号快捷登录
</button>
<button
v-if="isAgree && appStore.tokenExpired"
class="login-btn"
type="primary"
@click="handleLogin"
>
手机号快捷登录
</button>
</view>
<AgreePopup
@@ -120,20 +111,6 @@ const getPhoneNumber = (e) => {
.catch(() => {});
};
const handleLogin = () => {
console.log("handleLogin");
onLogin()
.then(() => {
uni.showToast({
title: "登录成功",
icon: "success",
});
appStore.setTokenExpired(false);
goBack();
})
.catch(() => {});
};
// 处理同意协议点击事件
const handleAgreeClick = (type) => {
visible.value = true;