首页面板修改userStore.userInfo?.user?.userId
This commit is contained in:
parent
66ca558652
commit
a9f2f540b6
|
|
@ -315,7 +315,7 @@ const loadDashboardData = async () => {
|
|||
// 从 store 获取用户ID,如果没有则使用默认值
|
||||
const userStore = useUserStore();
|
||||
// 尝试从 userInfo 中获取用户ID,如果没有则使用默认值
|
||||
const joinUserId = userStore.userInfo?.id || userStore.userInfo?.userId || '23';
|
||||
const joinUserId = userStore.userInfo?.user?.userId || userStore.userInfo?.userId || '23';
|
||||
|
||||
const res = await getDashboardBrief({
|
||||
joinUserId,
|
||||
|
|
|
|||
|
|
@ -326,8 +326,6 @@ const loadDictData = async () => {
|
|||
getCustomerIntentLevelDict(),
|
||||
getCustomerFollowTypeDict()
|
||||
]);
|
||||
|
||||
|
||||
if (statusRes ) {
|
||||
statusOptions.value = statusRes|| [];
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ export const Request = () => {
|
|||
// 初始化请求配置
|
||||
uni.$uv.http.setConfig((config) => {
|
||||
/* config 为默认全局配置*/
|
||||
config.baseURL = 'http://192.168.1.5:4001'; /* 根域名 */
|
||||
// config.baseURL = 'http://192.168.1.5:4001'; /* 根域名 */
|
||||
config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */
|
||||
return config
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user