Commit 1a97f990 by 李伟康

commit

1 parent 3142b13e
...@@ -38,14 +38,12 @@ export default { ...@@ -38,14 +38,12 @@ export default {
] ]
} }
}, },
watch: { watch: {
watchFlag: { watchFlag: {
immediate: true, immediate: true,
handler(newval) { handler(newval) {
this.showWindow = newval this.showWindow = newval
this.hideLoading() this.hideLoading()
if(this.$route.path == '/') this.$router.push('coupon')
} }
} }
}, },
...@@ -54,7 +52,6 @@ export default { ...@@ -54,7 +52,6 @@ export default {
return this.$store.state.app.showWindow return this.$store.state.app.showWindow
} }
}, },
mounted() { mounted() {
}, },
......
...@@ -49,7 +49,12 @@ const pages = { ...@@ -49,7 +49,12 @@ const pages = {
} }
] ]
} }
let routes = [] let routes = [
{
path:'/',
redirect: '/coupon'
}
]
const keepAlives = [] const keepAlives = []
Object.keys(pages).map(parent => { Object.keys(pages).map(parent => {
pages[parent].map(val => { pages[parent].map(val => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!