From fa611ff2eeaac289931eb0e21a962743fb271ba7 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 23 Sep 2022 17:46:57 +0800
Subject: [PATCH] Update v1.2.0
---
src/components/common/sidebar.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pages/project-app/sidebar.vue b/src/components/common/sidebar.vue
similarity index 95%
rename from src/pages/project-app/sidebar.vue
rename to src/components/common/sidebar.vue
index c042e6e..41f6bb7 100644
--- a/src/pages/project-app/sidebar.vue
+++ b/src/components/common/sidebar.vue
@@ -28,7 +28,6 @@
import { getRoot } from '/@/root'
import * as icons from '@ant-design/icons-vue'
import { ERouterName } from '/@/types'
-import websocket from '/@/api/websocket'
interface IOptions {
key: number
@@ -58,7 +57,7 @@
{ 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: 'Fligth Route Library', path: '/' + ERouterName.WAYLINE, icon: 'NodeIndexOutlined' },
+ { key: 4, label: 'Flight Route Library', path: '/' + ERouterName.WAYLINE, icon: 'NodeIndexOutlined' },
{ key: 5, label: 'Task Plan Library', path: '/' + ERouterName.TASK, icon: 'CalendarOutlined' }
]
@@ -66,10 +65,11 @@
const path = typeof item.path === 'string' ? item.path : item.path.path
return root.$route.path?.indexOf(path) === 0
}
+
function goHome () {
root.$router.push('/' + ERouterName.MEMBERS)
- websocket.close()
}
+
return {
options,
selectedRoute,
--
Gitblit v1.9.3