This commit is contained in:
2025-09-17 21:52:42 +08:00
parent 6d29326dc4
commit c3907904ff
4 changed files with 2438 additions and 0 deletions

View File

@@ -8,6 +8,11 @@ export default {
},
onShow: function () {
// #ifndef MP-WEIXIN
const ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("micromessenger") !== -1) {
toPage('/pages/notSupported/index');
return;
}
const UserStore = useUserStore();
if (!UserStore.isLogin && window.location.href.indexOf('/pages/register/index') < 0 && window.location.href.indexOf('/pages/fastInput/index') < 0) {
toPage('/pages/login/index');