增加判断如果是安卓h5且登录状态下强行跳转至下载app页面

This commit is contained in:
2024-12-26 14:08:08 +08:00
parent e51a518574
commit 423d5fb47f

12
App.vue
View File

@@ -1,5 +1,6 @@
<script>
import config from '@/common/config.js'
import {isAndroid} from '@/utils/app.js'
import store from './store/index.js'
export default {
onLaunch: function() {
@@ -632,6 +633,17 @@
},
onShow: function() {
// #ifdef H5
const token=uni.getStorageSync('token');
console.log(isAndroid());
if(isAndroid()&&token){
uni.navigateTo({
url:'/pages/login/appEq'
})
}
// #endif
console.log('App Show')
// #ifdef APP-PLUS
let userId = uni.getStorageSync('userId')