From 873b66bcbea99515e531d2bcfa0d7574c868fac6 Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Thu, 16 Feb 2023 09:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AFjson?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HomeView.vue | 5 +++-- vue.config.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 3f40e0e..0be9d55 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -105,6 +105,7 @@ export default { // this.guideShow = true; // console.log(this.userInfo.papersnumber) if(this.userInfo){ + // console.log(this.userInfo.papersnumber); checkBacklist(this.userInfo.papersnumber).then(res => { if(res.data){ this.errMsg = res.data; @@ -120,7 +121,7 @@ export default { lightAppJssdk.user.getTicket({ success: (data) => { //成功回调 - console.log(JSON.stringify(data)) + // console.log(JSON.stringify(data)) if (data == "未登录") { this.onLoginApp() //APP用户未登录,调用登录页面 } else { @@ -218,7 +219,7 @@ export default { if (data.retcode == "000000") { const userInfo = data.data sessionStorage.setItem('userInfo', userInfo); - this.userInfo = userInfo; + this.userInfo = JSON.parse(userInfo); } else { } }) diff --git a/vue.config.js b/vue.config.js index 9bcdc1e..a7b601b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -8,7 +8,7 @@ module.exports = defineConfig({ proxy: { "/api": { //本地服务接口地址 - target: "http://192.168.1.3", + target: "http://192.168.1.106", //远程演示服务地址,可用于直接启动项目 // target: 'https://saber.bladex.vip/api', ws: true,