From 5ac4e22d4c590216734fb4f9b93881a92a1f2f4e Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Wed, 13 Sep 2023 09:31:41 +0800
Subject: [PATCH] 英文转中文

---
 src/components/common/sidebar.vue |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/components/common/sidebar.vue b/src/components/common/sidebar.vue
index 41f6bb7..10588e4 100644
--- a/src/components/common/sidebar.vue
+++ b/src/components/common/sidebar.vue
@@ -16,8 +16,8 @@
     </router-link>
     </div>
     <div class="mb20 flex-display flex-column flex-align-center flex-justify-between">
-      <a-tooltip title="Back to home" placement="right">
-        <a @click="goHome"> <Icon icon="ImportOutlined" style="font-size: 22px; color: white"/></a>
+      <a-tooltip title="返回项目列表" placement="right">
+        <a @click="goBack"> <Icon icon="ImportOutlined" style="font-size: 22px; color: white"/></a>
       </a-tooltip>
     </div>
   </div>
@@ -53,12 +53,12 @@
   setup () {
     const root = getRoot()
     const options = [
-      { key: 0, label: 'Tsa', path: '/' + ERouterName.TSA, icon: 'TeamOutlined' },
-      { key: 1, label: 'Livestream', path: '/' + ERouterName.LIVESTREAM, icon: 'VideoCameraOutlined' },
-      { key: 2, label: 'Annotations', path: '/' + ERouterName.LAYER, icon: 'EnvironmentOutlined' },
-      { key: 3, label: 'Media Files', path: '/' + ERouterName.MEDIA, icon: 'PictureOutlined' },
-      { key: 4, label: 'Flight Route Library', path: '/' + ERouterName.WAYLINE, icon: 'NodeIndexOutlined' },
-      { key: 5, label: 'Task Plan Library', path: '/' + ERouterName.TASK, icon: 'CalendarOutlined' }
+      { key: 0, label: '团队', path: '/' + ERouterName.TSA, icon: 'TeamOutlined' },
+      { key: 1, label: '直播', path: '/' + ERouterName.LIVESTREAM, icon: 'VideoCameraOutlined' },
+      { key: 2, label: '标注', path: '/' + ERouterName.LAYER, icon: 'EnvironmentOutlined' },
+      { key: 3, label: '媒体库', path: '/' + ERouterName.MEDIA, icon: 'PictureOutlined' },
+      { key: 4, label: '航线库', path: '/' + ERouterName.WAYLINE, icon: 'NodeIndexOutlined' },
+      { key: 5, label: '计划库', path: '/' + ERouterName.TASK, icon: 'CalendarOutlined' }
     ]
 
     function selectedRoute (item: IOptions) {
@@ -66,14 +66,15 @@
       return root.$route.path?.indexOf(path) === 0
     }
 
-    function goHome () {
-      root.$router.push('/' + ERouterName.MEMBERS)
+    function goBack () {
+      root.$router.go(-1)
+      // root.$router.push('/' + ERouterName.MEMBERS)
     }
 
     return {
       options,
       selectedRoute,
-      goHome,
+      goBack,
     }
   }
 })

--
Gitblit v1.9.3