增加判断如果是安卓h5且登录状态下强行跳转至下载app页面
This commit is contained in:
12
App.vue
12
App.vue
@@ -1,5 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import config from '@/common/config.js'
|
import config from '@/common/config.js'
|
||||||
|
import {isAndroid} from '@/utils/app.js'
|
||||||
import store from './store/index.js'
|
import store from './store/index.js'
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
@@ -632,6 +633,17 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
onShow: function() {
|
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')
|
console.log('App Show')
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
let userId = uni.getStorageSync('userId')
|
let userId = uni.getStorageSync('userId')
|
||||||
|
|||||||
Reference in New Issue
Block a user