Jelajahi Sumber

修改存储的数据

695593266@qq.com 9 bulan lalu
induk
melakukan
af3e6ee539
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/singleLogin/index.vue

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

@@ -450,8 +450,8 @@
         this.isInfo = false;
 
         // 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);
         // console.log(this.$store.state.user, 'this.$store.state.user');
         this.$router.push(this.$route?.query?.from ?? '/').catch(() => {});
       },