feat: 登录后直接跳转到视频生成页面
This commit is contained in:
parent
dbc292b058
commit
a67a8e202a
|
|
@ -181,6 +181,7 @@ export default {
|
||||||
})
|
})
|
||||||
this.username = ""
|
this.username = ""
|
||||||
this.password = ""
|
this.password = ""
|
||||||
|
this.$router.replace({ name: 'video-gen' })
|
||||||
this.$emit('cancel')
|
this.$emit('cancel')
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export const constantRoutes = [{
|
||||||
path: '/',
|
path: '/',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: {
|
redirect: {
|
||||||
name: 'index'
|
name: 'video-gen'
|
||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: 'index',
|
path: 'index',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue