zhangjie 3 месяцев назад
Родитель
Сommit
140759f815
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/store/modules/user/index.ts

+ 3 - 2
src/store/modules/user/index.ts

@@ -1,6 +1,7 @@
 import { defineStore } from 'pinia';
 import { removeRouteListener } from '@/utils/route-listener';
 import { userLogout } from '@/api/user';
+import { DEVICE_ID, PLATFORM } from '@/constants/app';
 import { UserState } from './types';
 
 const useUserStore = defineStore('user', {
@@ -28,8 +29,8 @@ const useUserStore = defineStore('user', {
     version: '',
     privilegeId: '',
     uiSetting: null,
-    deviceId: '',
-    platform: '',
+    deviceId: DEVICE_ID,
+    platform: PLATFORM,
   }),
 
   getters: {