🎨 登陆跳转回原界面

This commit is contained in:
ronger 2021-09-07 19:47:37 +08:00
parent 6e4c75b9cf
commit 5c32f8aeb1

View File

@ -138,12 +138,8 @@
</svg>
</el-button>
</el-popover>
<nuxt-link to="/login">
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;">登录</el-link>
</nuxt-link>
<nuxt-link to="/register">
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;">注册</el-link>
</nuxt-link>
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;" @click="login">登录</el-link>
<el-link href="/register" rel="nofollow" :underline="false" style="margin-left: 10px;">注册</el-link>
</el-col>
</client-only>
</el-col>
@ -297,6 +293,14 @@ export default {
}
})
}
},
login() {
this.$router.push({
path: '/login',
query: {
historyUrl: window.location.href
}
})
}
},
mounted() {