From a9f2f540b67a1162d1c181f28aa3c44d44aa3b9e Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 11 Nov 2025 09:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=9D=A2=E6=9D=BF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9userStore.userInfo=3F.user=3F.userId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ContentDashboard.vue | 2 +- pages/customer/follow/add/index.vue | 2 -- utils/request/index.js | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) 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 })