You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<template>
|
|
</template>
|
|
|
|
<script>
|
|
import {getToken} from '@/common/auth.js'
|
|
export default {
|
|
onShow(options) {
|
|
|
|
if(getToken()){
|
|
uni.switchTab({
|
|
url: '/pages/index/index'
|
|
});
|
|
}else{
|
|
uni.navigateTo({
|
|
url: '/pages/login/login'
|
|
});
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style> |