guhongwei 2 anni fa
parent
commit
ec8e98c03a
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      pages/my/index.vue

+ 11 - 11
pages/my/index.vue

@@ -131,17 +131,17 @@
 			},
 			// 公共跳转
 			toCommon(e) {
-				// uni.getStorage({
-				// 	key: 'token',
-				// 	success: function(res) {
-				// 		console.log(res);
-				// 	},
-				// 	fail: function(err) {
-				// 		uni.navigateTo({
-				// 			url: `/pages/login/index`
-				// 		})
-				// 	}
-				// });
+				uni.getStorage({
+					key: 'token',
+					success: function(res) {
+						console.log(res);
+					},
+					fail: function(err) {
+						uni.navigateTo({
+							url: `/pages/login/index`
+						})
+					}
+				});
 				// uni.navigateTo({
 				// 	url: `/${e}`
 				// })