diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index aaba9eb48..ef5f09fb1 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -24,7 +24,17 @@ const getAllDateset: (param?: String) => Promise> = (param) => { return get(`${prefix}`, param && { search_text: param }) } +/** + * 删除数据集 + * @param 参数 dataset_id + */ +const delDateset: (dataset_id: String) => Promise> = (dataset_id) => { + return del(`${prefix}/${dataset_id}`) +} + + export default { getDateset, - getAllDateset + getAllDateset, + delDateset } diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index e5fc5fb1f..902ad7b03 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -2,11 +2,11 @@
-
+
-

{{ title }}

+

{{ title }}

@@ -50,14 +50,6 @@ function cardLeave() { position: relative; min-height: 150px; - .card-header { - .title { - align-items: center; - h3 { - font-size: 15px; - } - } - } .description { display: -webkit-box; -webkit-box-orient: vertical; diff --git a/ui/src/layout/components/top-bar/top-menu/index.vue b/ui/src/layout/components/top-bar/top-menu/index.vue index 70ce72471..7b7e742d4 100644 --- a/ui/src/layout/components/top-bar/top-menu/index.vue +++ b/ui/src/layout/components/top-bar/top-menu/index.vue @@ -1,5 +1,5 @@