update
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user