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