|
@@ -6,11 +6,11 @@ import { useDictStoreWithOut } from '@/utils/dict';
|
|
|
|
|
|
const userStore = useUserStoreWithOut();
|
|
|
|
|
|
+useDictStoreWithOut()
|
|
|
const initUserInfoHandler = async () => {
|
|
|
const code: string = await getDDAuthCode() as string
|
|
|
const userIdResult = await getUserIdByDD({code})
|
|
|
if (userIdResult && userIdResult?.data) {
|
|
|
- useDictStoreWithOut()
|
|
|
localStorage.setItem("ACCESS_TOKEN", userIdResult?.data.accessToken)
|
|
|
const userResult = await getUserInfoById()
|
|
|
if (userResult && userResult?.data) {
|