diff --git a/otherPages/authentication/list/index.vue b/otherPages/authentication/list/index.vue index 87d1ae1..1e62d23 100644 --- a/otherPages/authentication/list/index.vue +++ b/otherPages/authentication/list/index.vue @@ -175,6 +175,10 @@ try { const { userTelephone } = store.state.user.userInfo + if(!userId.value) { + return + } + const data = await getUserOne(userId.value) if (data) { diff --git a/pages/workbenchManage/index.vue b/pages/workbenchManage/index.vue index eebffcb..7fb92ad 100644 --- a/pages/workbenchManage/index.vue +++ b/pages/workbenchManage/index.vue @@ -42,7 +42,7 @@ {{ configList?.pet_teacher_statement?.paramValueText }} - 申请加入 > { - if (!userInfo.value || !userInfo.value.userId) { + if (!userInfo.value || !userInfo.value.userId || userInfo.value.userId == 'undefined') { uni.navigateTo({ url: "/otherPages/authentication/list/index" }) diff --git a/utils/getUrl.js b/utils/getUrl.js index ac138f6..1d1a292 100644 --- a/utils/getUrl.js +++ b/utils/getUrl.js @@ -3,10 +3,10 @@ const accountInfo = wx.getAccountInfoSync(); // current = accountInfo.miniProgram.envVersion; const api = { - develop:"http://127.0.0.1:8002", + // develop:"http://127.0.0.1:8002", // develop:"http://h5.xzaiyp.top", // develop:"https://api.catmdogd.com/prod-api", - // develop:"https://pet-admin.hhlm1688.com/api", + develop:"https://pet-admin.hhlm1688.com/api", // develop: "http://youyi-test.natapp1.cc/prod-api", // 开发 trial: "https://api.catmdogd.com/prod-api", //测试 release: "https://api.catmdogd.com/prod-api",