fix: 移除欢迎页

This commit is contained in:
阿梦 2026-06-02 14:48:26 +08:00
parent 2a3c7f4871
commit ba3a1f4113
2 changed files with 5 additions and 16 deletions

View File

@ -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 () => {

View File

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