|
@@ -28,6 +28,24 @@
|
|
|
});
|
|
|
}
|
|
|
// #endif
|
|
|
+ // #ifdef H5
|
|
|
+ if (cacheManager.get('auth')) {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: `/pages/admin/ShouYe/shouye`,
|
|
|
+ success() {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ cacheManager.clearAll()
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/Login/index',
|
|
|
+ success() {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
},
|
|
|
onShow: function() {
|
|
|
|
|
@@ -43,6 +61,24 @@
|
|
|
}
|
|
|
});
|
|
|
// #endif
|
|
|
+ // #ifdef H5
|
|
|
+ if (cacheManager.get('auth')) {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: `/pages/admin/ShouYe/shouye`,
|
|
|
+ success() {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ cacheManager.clearAll()
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/Login/index',
|
|
|
+ success() {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
},
|
|
|
onHide: function() {
|
|
|
|