代码优化
This commit is contained in:
parent
0545f6a3e3
commit
989a527081
11
App.vue
11
App.vue
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import config from '@/common/config.js'
|
||||
import {isAndroid} from '@/utils/app.js'
|
||||
import {isH5Android} from '@/utils/app.js'
|
||||
import store from './store/index.js'
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
|
|
@ -635,14 +635,7 @@
|
|||
onShow: function() {
|
||||
|
||||
// #ifdef H5
|
||||
const token=uni.getStorageSync('token');
|
||||
console.log(isAndroid());
|
||||
if(isAndroid()&&token){
|
||||
uni.removeStorageSync('token')
|
||||
uni.navigateTo({
|
||||
url:'/pages/login/appEq'
|
||||
})
|
||||
}
|
||||
isH5Android()
|
||||
// #endif
|
||||
|
||||
console.log('App Show')
|
||||
|
|
|
|||
Loading…
Reference in New Issue