From 5c32f8aeb1f09dfc8aec45a0ddf1761c55842b31 Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 7 Sep 2021 19:47:37 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=99=BB=E9=99=86=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=9B=9E=E5=8E=9F=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layouts/pc/header.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index 2f98fc5..27a9949 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -138,12 +138,8 @@ - - 登录 - - - 注册 - + 登录 + 注册 @@ -297,6 +293,14 @@ export default { } }) } + }, + login() { + this.$router.push({ + path: '/login', + query: { + historyUrl: window.location.href + } + }) } }, mounted() {