|
@@ -5,7 +5,7 @@ import { getUserInfo } from '@/api/personal/user'
|
|
|
import { getEnterpriseUserAccount, getUserAccount } from '@/api/common'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
-import { getRewardEventList } from '@/utils/eventList'
|
|
|
+import { updateEventList } from '@/utils/eventList'
|
|
|
import { getBaseInfoDictOfName } from '@/utils/getText'
|
|
|
|
|
|
|
|
@@ -63,7 +63,7 @@ export const useUserStore = defineStore('user',
|
|
|
const data = await api({ id: this.accountInfo.userId })
|
|
|
this.userInfo = data
|
|
|
localStorage.setItem('userInfo', JSON.stringify(data))
|
|
|
- getRewardEventList() // 获取规则配置跟踪列表
|
|
|
+ updateEventList(true) // 获取规则配置跟踪列表
|
|
|
this.getUserAccountInfo()
|
|
|
} catch (error) {
|
|
|
Snackbar.error(error.msg)
|
|
@@ -121,7 +121,7 @@ export const useUserStore = defineStore('user',
|
|
|
localStorage.setItem('currentRole', 'enterprise')
|
|
|
await this.getEnterpriseInfo()
|
|
|
await this.getEnterpriseUserAccountInfo()
|
|
|
- getRewardEventList()
|
|
|
+ updateEventList(false)
|
|
|
Snackbar.success('切换成功')
|
|
|
},
|
|
|
// 获取当前登录的企业用户信息
|