|
@@ -16,9 +16,9 @@
|
|
|
<button
|
|
|
class="tab-item"
|
|
|
:class="{
|
|
|
- active: activeNavItemIdx === 0
|
|
|
+ active: $route.name === 'GeneralView'
|
|
|
}"
|
|
|
- @click="activeNavItemIdx = 0"
|
|
|
+ @click="$router.push({name: 'GeneralView'})"
|
|
|
>
|
|
|
概述总览
|
|
|
<img
|
|
@@ -31,9 +31,9 @@
|
|
|
<button
|
|
|
class="tab-item"
|
|
|
:class="{
|
|
|
- active: activeNavItemIdx === 1
|
|
|
+ active: $route.name === 'HistoryView'
|
|
|
}"
|
|
|
- @click="activeNavItemIdx = 1"
|
|
|
+ @click="$router.push({name: 'HistoryView'})"
|
|
|
>
|
|
|
历史回顾
|
|
|
<img
|
|
@@ -46,9 +46,9 @@
|
|
|
<button
|
|
|
class="tab-item"
|
|
|
:class="{
|
|
|
- active: activeNavItemIdx === 2
|
|
|
+ active: $route.name === 'TreasureView'
|
|
|
}"
|
|
|
- @click="activeNavItemIdx = 2"
|
|
|
+ @click="$router.push({name: 'TreasureView'})"
|
|
|
>
|
|
|
国之重器
|
|
|
<img
|
|
@@ -61,9 +61,9 @@
|
|
|
<button
|
|
|
class="tab-item"
|
|
|
:class="{
|
|
|
- active: activeNavItemIdx === 3
|
|
|
+ active: $route.name === 'MetaverseView'
|
|
|
}"
|
|
|
- @click="activeNavItemIdx = 3"
|
|
|
+ @click="$router.push({name: 'MetaverseView'})"
|
|
|
>
|
|
|
工业元宇宙
|
|
|
<img
|