zs 1 year ago
parent
commit
d22aaf49f6

+ 1 - 5
pages/home/index.vue

@@ -73,11 +73,7 @@
 				const that = this;
 				try {
 					const res = uni.getStorageSync('token');
-					if (res) {
-						that.$set(that, `user`, res);
-						that.clearPage();
-						that.search();
-					}
+					if (res) that.$set(that, `user`, res);
 				} catch (e) {
 					uni.showToast({
 						title: err.errmsg,

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map


+ 1 - 5
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -321,11 +321,7 @@ var _default = {
       var that = this;
       try {
         var res = uni.getStorageSync('token');
-        if (res) {
-          that.$set(that, "user", res);
-          that.clearPage();
-          that.search();
-        }
+        if (res) that.$set(that, "user", res);
       } catch (e) {
         uni.showToast({
           title: err.errmsg,