diff --git a/core/core-frontend/src/custom-component/v-query/CustomSortFilter.vue b/core/core-frontend/src/custom-component/v-query/CustomSortFilter.vue
index 723ec31c66..9624b4cd74 100644
--- a/core/core-frontend/src/custom-component/v-query/CustomSortFilter.vue
+++ b/core/core-frontend/src/custom-component/v-query/CustomSortFilter.vue
@@ -7,7 +7,7 @@
class="custom-sort_filter"
width="300px"
>
-
+
diff --git a/core/core-frontend/src/custom-component/v-query/Select.vue b/core/core-frontend/src/custom-component/v-query/Select.vue
index 2cc0c9b969..097dbf4c30 100644
--- a/core/core-frontend/src/custom-component/v-query/Select.vue
+++ b/core/core-frontend/src/custom-component/v-query/Select.vue
@@ -291,9 +291,18 @@ const setOldMapValue = arr => {
const customSort = () => {
if (config.value.sortList?.length && config.value.sort === 'customSort') {
options.value = [
- ...options.value.sort(
- (a, b) => config.value.sortList.indexOf(a.value) - config.value.sortList.indexOf(b.value)
- )
+ ...options.value
+ .sort(a => {
+ if (config.value.sortList.indexOf(a.value) !== -1) {
+ return -1
+ }
+ })
+ .sort((a, b) => {
+ if (config.value.sortList.indexOf(a.value) === -1) {
+ return 0
+ }
+ return config.value.sortList.indexOf(a.value) - config.value.sortList.indexOf(b.value)
+ })
]
}
}
@@ -517,7 +526,7 @@ const setOptions = (num: number) => {
handleFieldIdChange({
queryId: field.id,
displayId: displayId || field.id,
- sort: sort === 'customSort' ? '' : sort,
+ sort: sort === 'customSort' ? 'asc' : sort,
sortId,
resultMode: config.value.resultMode || 0,
searchText: searchText.value,
diff --git a/core/core-frontend/src/layout/components/ToolboxCfg.vue b/core/core-frontend/src/layout/components/ToolboxCfg.vue
index e31ca8dec5..633faac003 100644
--- a/core/core-frontend/src/layout/components/ToolboxCfg.vue
+++ b/core/core-frontend/src/layout/components/ToolboxCfg.vue
@@ -83,9 +83,8 @@ onMounted(() => {
diff --git a/core/core-frontend/src/layout/components/TopDocCard.vue b/core/core-frontend/src/layout/components/TopDocCard.vue
index 0e4797b747..41211ac028 100644
--- a/core/core-frontend/src/layout/components/TopDocCard.vue
+++ b/core/core-frontend/src/layout/components/TopDocCard.vue
@@ -27,33 +27,28 @@ const openBlank = () => {
-
-
-
-
{{ cardInfo.name }}
+
+
+
+
{{ cardInfo.name }}