Browse Source

修改存储数据

695593266@qq.com 9 months ago
parent
commit
835c140b93
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/views/singleLogin/index.vue
  2. 2 2
      vue.config.js

+ 1 - 1
src/views/singleLogin/index.vue

@@ -451,7 +451,7 @@
 
 
         // console.log(this.infoForm, 'this.infoForm');
         // console.log(this.infoForm, 'this.infoForm');
         // this.$store.commit('user/setAllUserInfo', this.infoForm);
         // this.$store.commit('user/setAllUserInfo', this.infoForm);
-        localStorage.setItem('chooseUserInfo', this.infoForm);
+        localStorage.setItem('chooseUserInfo', JSON.stringify(this.infoForm));
         // console.log(this.$store.state.user, 'this.$store.state.user');
         // console.log(this.$store.state.user, 'this.$store.state.user');
         this.$router.push(this.$route?.query?.from ?? '/').catch(() => {});
         this.$router.push(this.$route?.query?.from ?? '/').catch(() => {});
       },
       },

+ 2 - 2
vue.config.js

@@ -27,8 +27,8 @@ module.exports = {
       '/api': {
       '/api': {
         // target: 'http://124.71.68.31:50001',
         // target: 'http://124.71.68.31:50001',
         // target: 'http://192.168.1.105:18086',
         // target: 'http://192.168.1.105:18086',
-        // target: 'http://192.168.1.251:18086',
-        target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.125:18086',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
         pathRewrite: {
           '^/api': ''
           '^/api': ''