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,