1234567891011121314151617181920212223242526 |
- <template>
- </template>
- <script>
- export default {
- onShow() {
- let role = uni.getStorageSync('role');
- let userInfo = uni.getStorageSync('userInfo');
- if(role === '4' && userInfo){
- uni.switchTab({
- url: '/pages/index/index'
- });
- }else{
- uni.navigateTo({
- url: '/pages/login/index?id=4'
- });
- }
- },
- methods:{
-
- }
- }
- </script>
- <style>
- </style>
|