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: '登录',