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