代码优化

This commit is contained in:
YeMingfei666 2024-12-26 14:41:27 +08:00
parent 0545f6a3e3
commit 989a527081
1 changed files with 2 additions and 9 deletions

11
App.vue
View File

@ -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')