Skip to content

Commit 30bdecf

Browse files
lan-yonghuixuwei-fit2cloud
authored andcommitted
refactor: improve code
1 parent ad80645 commit 30bdecf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/src/components/layout/Workspace.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { ref, computed, onMounted } from 'vue'
2+
import { computed, onMounted, ref } from 'vue'
33
import icon_expand_down_filled from '@/assets/svg/icon_expand-down_filled.svg'
44
import icon_moments_categories_outlined from '@/assets/svg/icon_moments-categories_outlined.svg'
55
import icon_done_outlined from '@/assets/svg/icon_done_outlined.svg'
@@ -55,8 +55,7 @@ const handleDefaultWorkspaceChange = (item: any) => {
5555
}
5656
5757
const init_ws_data = async () => {
58-
const res = await userApi.ws_options()
59-
defaultDatasourceList.value = res
58+
defaultDatasourceList.value = await userApi.ws_options()
6059
}
6160
6261
const init_current_ws = () => {
@@ -178,7 +177,7 @@ onMounted(async () => {
178177
.system-workspace.system-workspace {
179178
padding: 4px 0;
180179
width: 280px !important;
181-
box-shadow: 0px 4px 8px 0px #1f23291a;
180+
box-shadow: 0 4px 8px 0 #1f23291a;
182181
border: 1px solid #dee0e3;
183182
.ed-input {
184183
.ed-input__wrapper {

0 commit comments

Comments
 (0)