|
@@ -1,17 +1,17 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
onLaunch: function() {
|
|
|
- console.log('App Launch')
|
|
|
- const path = this.$route.path;
|
|
|
- console.log(path)
|
|
|
- if (path === '/') {
|
|
|
- uni.redirectTo({ url: '/pages/' });
|
|
|
- } else if (path === '/pages/canteenBackend') {
|
|
|
- console.log("满足这个路径")
|
|
|
- uni.redirectTo({ url: '/pages/backend/backend' });
|
|
|
- } else {
|
|
|
- uni.redirectTo({ url: '/pages/index/main' }); // 默认入口
|
|
|
- }
|
|
|
+ // console.log('App Launch')
|
|
|
+ // const path = this.$route.path;
|
|
|
+ // console.log(path)
|
|
|
+ // if (path === '/') {
|
|
|
+ // uni.redirectTo({ url: '/pages/index/index' });
|
|
|
+ // } else if (path === '/pages/canteenBackend') {
|
|
|
+ // console.log("满足这个路径")
|
|
|
+ // uni.redirectTo({ url: '/pages/backend/backend' });
|
|
|
+ // } else {
|
|
|
+ // uni.redirectTo({ url: '/pages/index/index' }); // 默认入口
|
|
|
+ // }
|
|
|
},
|
|
|
onShow: function() {
|
|
|
console.log('App Show')
|