fix: 移除欢迎页
This commit is contained in:
parent
2a3c7f4871
commit
ba3a1f4113
@ -40,7 +40,7 @@ const { setRedPointStatus } = homeRedPointStore
|
|||||||
const { redPointStatus } = storeToRefs(homeRedPointStore)
|
const { redPointStatus } = storeToRefs(homeRedPointStore)
|
||||||
const taskData = taskStore()
|
const taskData = taskStore()
|
||||||
const { userInfo, workToken } = storeToRefs(userStore())
|
const { userInfo, workToken } = storeToRefs(userStore())
|
||||||
const { getUserInfo, isFirstBind } = userStore()
|
const { getUserInfo } = userStore()
|
||||||
const { system, checkUpdate } = globalStore()
|
const { system, checkUpdate } = globalStore()
|
||||||
const isHomePageLoading = ref(false)
|
const isHomePageLoading = ref(false)
|
||||||
|
|
||||||
@ -305,12 +305,6 @@ async function refreshHomePage() {
|
|||||||
|
|
||||||
let timer: any
|
let timer: any
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// 是否首绑
|
|
||||||
const isBind = await isFirstBind()
|
|
||||||
if (!isBind) {
|
|
||||||
router.push('/init')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
timer = setInterval(() => getPoint(), 1000 * 30)
|
timer = setInterval(() => getPoint(), 1000 * 30)
|
||||||
})
|
})
|
||||||
onActivated(async () => {
|
onActivated(async () => {
|
||||||
|
|||||||
@ -16,7 +16,7 @@ const showIcp = url.includes('//www.') || url.split('.').length === 2
|
|||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const { accountLogin, isFirstBind } = userStore()
|
const { accountLogin } = userStore()
|
||||||
// const { getInspectorInfo } = urgeStore()
|
// const { getInspectorInfo } = urgeStore()
|
||||||
const { system } = storeToRefs(globalStore())
|
const { system } = storeToRefs(globalStore())
|
||||||
const showBack = computed(() => Boolean(route.query.back))
|
const showBack = computed(() => Boolean(route.query.back))
|
||||||
@ -56,16 +56,11 @@ const onLogin = debounce(
|
|||||||
account: account.value,
|
account: account.value,
|
||||||
password: password.value,
|
password: password.value,
|
||||||
})
|
})
|
||||||
const isBind = await isFirstBind()
|
|
||||||
if (isBind) {
|
|
||||||
if (isShufaAccount(account.value)) {
|
if (isShufaAccount(account.value)) {
|
||||||
router.replace(SHUFA_PATH)
|
router.replace(SHUFA_PATH)
|
||||||
} else {
|
} else {
|
||||||
router.replace('/')
|
router.replace('/')
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
router.push('/init')
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
option: '登录',
|
option: '登录',
|
||||||
hideSuccess: true,
|
hideSuccess: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user