diff --git a/components/ContentDashboard.vue b/components/ContentDashboard.vue index f0642c1..7a9febf 100644 --- a/components/ContentDashboard.vue +++ b/components/ContentDashboard.vue @@ -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, diff --git a/pages/customer/follow/add/index.vue b/pages/customer/follow/add/index.vue index fb01564..07c84c8 100644 --- a/pages/customer/follow/add/index.vue +++ b/pages/customer/follow/add/index.vue @@ -326,8 +326,6 @@ const loadDictData = async () => { getCustomerIntentLevelDict(), getCustomerFollowTypeDict() ]); - - if (statusRes ) { statusOptions.value = statusRes|| []; diff --git a/utils/request/index.js b/utils/request/index.js index ebf26ac..1cade8d 100644 --- a/utils/request/index.js +++ b/utils/request/index.js @@ -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 })