|
@@ -6,7 +6,7 @@ import { logout } from '@/api/common/index'
|
|
|
import { getUserInfo } from '@/api/personal/user'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
-import { getAreaName } from '@/utils/getText'
|
|
|
+import { getDictName } from '@/utils/getText'
|
|
|
|
|
|
|
|
|
export const useUserStore = defineStore('user',
|
|
@@ -71,7 +71,7 @@ export const useUserStore = defineStore('user',
|
|
|
}
|
|
|
// 字典对应中文
|
|
|
const getFieldText = async (data) => {
|
|
|
- if (data.areaId && data.areaId !== 0) data.areaName = await getAreaName(data.areaId) // 现居住地text
|
|
|
+ if (data.areaId && data.areaId !== 0) await getDictName(data, data.areaId, 'areaName') // 现居住地text
|
|
|
if (data.birthday && data.birthday !== 0) data.birthdayText = timesTampChange(data.birthday).slice(0, 10) // 出生日期
|
|
|
if (data.eduType && data.eduType !== 0) data.eduTypeText = '硕士' // 学历
|
|
|
if (data.expType && data.expType !== 0) data.expTypeText = '1-3年' // 工作经验
|