首页面板修改userStore.userInfo?.user?.userId

This commit is contained in:
WindowBird 2025-11-11 09:34:53 +08:00
parent 66ca558652
commit a9f2f540b6
3 changed files with 3 additions and 4 deletions

View File

@ -315,7 +315,7 @@ const loadDashboardData = async () => {
// store ID使 // store ID使
const userStore = useUserStore(); const userStore = useUserStore();
// userInfo ID使 // 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({ const res = await getDashboardBrief({
joinUserId, joinUserId,

View File

@ -326,8 +326,6 @@ const loadDictData = async () => {
getCustomerIntentLevelDict(), getCustomerIntentLevelDict(),
getCustomerFollowTypeDict() getCustomerFollowTypeDict()
]); ]);
if (statusRes ) { if (statusRes ) {
statusOptions.value = statusRes|| []; statusOptions.value = statusRes|| [];

View File

@ -10,7 +10,8 @@ export const Request = () => {
// 初始化请求配置 // 初始化请求配置
uni.$uv.http.setConfig((config) => { uni.$uv.http.setConfig((config) => {
/* 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 return config
}) })