Explorar o código

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
登录

1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
eea4b41677
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pages/login/login.vue

+ 1 - 1
pages/login/login.vue

@@ -51,7 +51,7 @@
 								console.log(res, 'login data')
 								if (res.status == '200') {
 									console.log(res.data, 'login data')
-									uni.setStorageSync('token', res.data);
+									_this.$u.vuex('vuex_token',res.data)
 									if (_this.path === '/pages/index/main' || _this.lanuch) {
 										uni.reLaunch({
 											url: _this.path