From ba3a1f41132a235faf556cad199e23777a9e82bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=A2=A6?= Date: Tue, 2 Jun 2026 14:48:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=AC=A2=E8=BF=8E?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/home/index.vue | 8 +------- src/page/login/index.vue | 13 ++++--------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/page/home/index.vue b/src/page/home/index.vue index a779fba..06c63a2 100644 --- a/src/page/home/index.vue +++ b/src/page/home/index.vue @@ -40,7 +40,7 @@ const { setRedPointStatus } = homeRedPointStore const { redPointStatus } = storeToRefs(homeRedPointStore) const taskData = taskStore() const { userInfo, workToken } = storeToRefs(userStore()) -const { getUserInfo, isFirstBind } = userStore() +const { getUserInfo } = userStore() const { system, checkUpdate } = globalStore() const isHomePageLoading = ref(false) @@ -305,12 +305,6 @@ async function refreshHomePage() { let timer: any onMounted(async () => { - // 是否首绑 - const isBind = await isFirstBind() - if (!isBind) { - router.push('/init') - return - } timer = setInterval(() => getPoint(), 1000 * 30) }) onActivated(async () => { diff --git a/src/page/login/index.vue b/src/page/login/index.vue index 7bce199..81fd240 100644 --- a/src/page/login/index.vue +++ b/src/page/login/index.vue @@ -16,7 +16,7 @@ const showIcp = url.includes('//www.') || url.split('.').length === 2 const router = useRouter() const route = useRoute() -const { accountLogin, isFirstBind } = userStore() +const { accountLogin } = userStore() // const { getInspectorInfo } = urgeStore() const { system } = storeToRefs(globalStore()) const showBack = computed(() => Boolean(route.query.back)) @@ -56,15 +56,10 @@ const onLogin = debounce( account: account.value, password: password.value, }) - const isBind = await isFirstBind() - if (isBind) { - if (isShufaAccount(account.value)) { - router.replace(SHUFA_PATH) - } else { - router.replace('/') - } + if (isShufaAccount(account.value)) { + router.replace(SHUFA_PATH) } else { - router.push('/init') + router.replace('/') } }, option: '登录',