You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
477 B
28 lines
477 B
<template>
|
|
<div>
|
|
<el-button @click="go()">跳转</el-button>
|
|
<el-button @click="goHome()">返回首页</el-button>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
//登录后跳转的页面
|
|
export default {
|
|
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
go(){
|
|
this.$router.push({ path: this.redirect || "/childRoom" }).catch(()=>{})
|
|
},
|
|
// 返回首页
|
|
goHome(){
|
|
this.$router.push({ path: this.redirect || "/" }).catch(()=>{})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|