|
@@ -8,8 +8,10 @@
|
|
} from "@/utils/common";
|
|
} from "@/utils/common";
|
|
import cacheManager from "@/utils/cacheManager.js";
|
|
import cacheManager from "@/utils/cacheManager.js";
|
|
export default {
|
|
export default {
|
|
|
|
+
|
|
// creat by wgy 0619 生命周期 钩子
|
|
// creat by wgy 0619 生命周期 钩子
|
|
onLaunch: function() {
|
|
onLaunch: function() {
|
|
|
|
+ // #ifdef APP-PLUS
|
|
if (cacheManager.get('auth')) {
|
|
if (cacheManager.get('auth')) {
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: `/pages/study/index`,
|
|
url: `/pages/study/index`,
|
|
@@ -29,7 +31,7 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ // #endif
|
|
},
|
|
},
|
|
onShow: function() {
|
|
onShow: function() {
|
|
|
|
|