用户信息json格式化

main
xuechunyuan 3 years ago
parent 384c77e522
commit 873b66bcbe
  1. 5
      src/views/HomeView.vue
  2. 2
      vue.config.js

@ -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 {
}
})

@ -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,

Loading…
Cancel
Save