浏览代码

恢复字典

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