songxy il y a 1 an
Parent
commit
af0f10145a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {