增加判断如果是安卓h5且登录状态下强行跳转至下载app页面
This commit is contained in:
12
App.vue
12
App.vue
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user