Commit a6acb406 by chenwq

路由跳转

1 parent f5fc7de8
const staticRoutes = Object.freeze([{ const staticRoutes = Object.freeze([
{
name: 'default', name: 'default',
path: '/', path: '/',
redirect: { name: 'liveList' } redirect: { name: 'liveList' }
...@@ -10,10 +11,10 @@ const staticRoutes = Object.freeze([{ ...@@ -10,10 +11,10 @@ const staticRoutes = Object.freeze([{
meta: {} meta: {}
}, },
{ {
name: 'zoneList', name: 'jumpLive',
path: '/zoneList/index', path: '/liveList/jumpLive',
component: resolve => require([`@/views/zoneList/index.vue`], resolve), component: resolve => require([`@/views/liveList/jumpLive.vue`], resolve),
meta: {} meta: {}
} }
]) ])
export default staticRoutes
\ No newline at end of file \ No newline at end of file
export default staticRoutes
<template>
<div></div>
</template>
<script>
export default {
name: 'jumpLive',
data() {
return {
}
},
mounted() {
this.$router.push({
path: '/liveList/index'
})
},
methods: {
},
}
</script>
<style lang="scss" scoped>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!