From cf46694f1fdcf841cbe962209240449c099c2fb3 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sat, 8 Oct 2022 23:02:21 +0800 Subject: [PATCH] add dropdown --- src/components/common/TopHeader.vue | 8 ++++++++ src/i18n/zh/common/button.ts | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/common/TopHeader.vue b/src/components/common/TopHeader.vue index 8758b5d6..a1caf728 100644 --- a/src/components/common/TopHeader.vue +++ b/src/components/common/TopHeader.vue @@ -22,6 +22,8 @@ @@ -66,6 +68,12 @@ export default defineComponent({ name: 'login' }); }, + onProfile() { + window.location.href = 'https://auth.test.zhishuyun.com/user/profile'; + }, + onVerify() { + window.location.href = 'https://auth.test.zhishuyun.com/user/verify'; + }, onLogout() { this.$store.dispatch('resetAuth'); this.$router.push('/'); diff --git a/src/i18n/zh/common/button.ts b/src/i18n/zh/common/button.ts index f913377c..02662685 100644 --- a/src/i18n/zh/common/button.ts +++ b/src/i18n/zh/common/button.ts @@ -11,7 +11,8 @@ export default { info: '提示', publish: '发布', watch: '观看', - verify: '去实名认证', + verify: '实名认证', + profile: '个人信息', learn: '学习', buy: '购买' };