From 4dccbb68399da2d46943b8d613585afb49aa5455 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 22 Jul 2022 20:48:54 +0800
Subject: [PATCH] V1.1.0 for dock

---
 src/components/wayline-panel.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/wayline-panel.vue b/src/components/wayline-panel.vue
index 784fa3c..aad0a49 100644
--- a/src/components/wayline-panel.vue
+++ b/src/components/wayline-panel.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="panel-wrapper">
+  <div class="panel-wrapper" draggable="true">
     <div class="header">Wayline Library</div>
     <a-button type="primary" style="margin-top:20px" @click="onRefresh"
       >Refresh</a-button
@@ -20,6 +20,7 @@
 <script setup lang="ts">
 import { ref } from '@vue/reactivity'
 import { onMounted } from 'vue'
+import { ELocalStorageKey } from '../types/enums'
 import { getWaylineFiles } from '/@/api/wayline'
 const columns = [
   {
@@ -74,7 +75,7 @@
   onRefresh()
 })
 const onRefresh = async () => {
-  const wid: string = localStorage.getItem('workspace-id')
+  const wid: string = localStorage.getItem(ELocalStorageKey.WorkspaceId)
   data.value = []
   const index = 1
   const res = await getWaylineFiles(wid, {

--
Gitblit v1.9.3