update
This commit is contained in:
@@ -8,6 +8,11 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
// #ifndef MP-WEIXIN
|
// #ifndef MP-WEIXIN
|
||||||
|
const ua = navigator.userAgent.toLowerCase();
|
||||||
|
if (ua.indexOf("micromessenger") !== -1) {
|
||||||
|
toPage('/pages/notSupported/index');
|
||||||
|
return;
|
||||||
|
}
|
||||||
const UserStore = useUserStore();
|
const UserStore = useUserStore();
|
||||||
if (!UserStore.isLogin && window.location.href.indexOf('/pages/register/index') < 0 && window.location.href.indexOf('/pages/fastInput/index') < 0) {
|
if (!UserStore.isLogin && window.location.href.indexOf('/pages/register/index') < 0 && window.location.href.indexOf('/pages/fastInput/index') < 0) {
|
||||||
toPage('/pages/login/index');
|
toPage('/pages/login/index');
|
||||||
|
|||||||
@@ -190,6 +190,13 @@
|
|||||||
"navigationBarTitleText": "投诉邀请人",
|
"navigationBarTitleText": "投诉邀请人",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/notSupported/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "前往浏览器",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
],
|
],
|
||||||
|
|||||||
11
src/pages/notSupported/index.vue
Normal file
11
src/pages/notSupported/index.vue
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<script setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<image src="" mode="aspectFill" class="test !w-full !h-screen"></image>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user