diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index 5a1bc39..84e4cf5 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -90,7 +90,8 @@ 个人中心 - 每日一题 + 每日一题 + 每日一题(开通钱包账号激活) 我的草稿 我的钱包 设置 @@ -184,42 +185,39 @@ export default { }, handleSelectMenu(item) { let _ts = this; - let activeMenu = _ts.$store.state.activeMenu; - if (activeMenu !== item) { - switch (item) { - case 'topic': - _ts.$router.push({ - path: '/topic/news?page=1' - }) - break; - case 'portfolios': - _ts.$router.push({ - path: '/portfolios?page=1' - }) - break; - case 'products': - _ts.$router.push({ - path: '/products?page=1' - }) - break; - case 'github': - window.open("https://github.com/rymcu"); - break; - case 'taobao': - window.open("https://rymcu.taobao.com?utm_source=rymcu.com"); - break; - case 'open-data': - _ts.$router.push({ - path: '/open-data' - }) - break; - default: - _ts.$router.push( - { - path: '/' - } - ) - } + switch (item) { + case 'topic': + _ts.$router.push({ + path: '/topic/news?page=1' + }) + break; + case 'portfolios': + _ts.$router.push({ + path: '/portfolios?page=1' + }) + break; + case 'products': + _ts.$router.push({ + path: '/products?page=1' + }) + break; + case 'github': + window.open("https://github.com/rymcu"); + break; + case 'taobao': + window.open("https://rymcu.taobao.com?utm_source=rymcu.com"); + break; + case 'open-data': + _ts.$router.push({ + path: '/open-data' + }) + break; + default: + _ts.$router.push( + { + path: '/' + } + ) } }, handleCommand(item) { diff --git a/components/layouts/pc/main.vue b/components/layouts/pc/main.vue index 15b4d23..38ba69f 100644 --- a/components/layouts/pc/main.vue +++ b/components/layouts/pc/main.vue @@ -4,7 +4,7 @@ - + diff --git a/pages/admin.vue b/pages/admin.vue index e968c88..e06a58a 100644 --- a/pages/admin.vue +++ b/pages/admin.vue @@ -3,7 +3,7 @@