登录修改

parent e1b91f1a
...@@ -8,7 +8,7 @@ onLaunch(async () => { ...@@ -8,7 +8,7 @@ onLaunch(async () => {
// #ifdef H5-SGY // #ifdef H5-SGY
if (import.meta.env.VITE_APP_ENV === 'production') { if (import.meta.env.VITE_APP_ENV === 'production') {
userStore.logout() userStore.logout()
await fastLoginBySgy() fastLoginBySgy()
return return
} else { } else {
if (userStore.logout) await signIn2(); if (userStore.logout) await signIn2();
......
...@@ -83,6 +83,9 @@ onLoad(() => { ...@@ -83,6 +83,9 @@ onLoad(() => {
contentHeight.value = (res.top + res.bottom) / 2 + 25; contentHeight.value = (res.top + res.bottom) / 2 + 25;
}, },
}); });
setTimeout(() => {
getOrganizeList()
}, 1000)
}) })
const router = useRouter() const router = useRouter()
...@@ -96,10 +99,10 @@ const total = reactive({ ...@@ -96,10 +99,10 @@ const total = reactive({
2: 0 2: 0
}) })
onShow(async() => { onShow(() => {
// toLogin() // toLogin()
// if (userStore.isLogin()) // if (userStore.isLogin())
await getOrganizeList() getOrganizeList()
}) })
const toLogin = () => { const toLogin = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment