songxy пре 1 година
родитељ
комит
af0f10145a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client_h5/src/App.vue

+ 1 - 1
client_h5/src/App.vue

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