fix: 移除欢迎页
This commit is contained in:
parent
2a3c7f4871
commit
ba3a1f4113
@ -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 () => {
|
||||
|
||||
@ -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,16 +56,11 @@ 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('/')
|
||||
}
|
||||
} else {
|
||||
router.push('/init')
|
||||
}
|
||||
},
|
||||
option: '登录',
|
||||
hideSuccess: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user