diff --git a/src/modules/dict/store/dict.ts b/src/modules/dict/store/dict.ts index ae44a0e..558a71a 100644 --- a/src/modules/dict/store/dict.ts +++ b/src/modules/dict/store/dict.ts @@ -1,4 +1,3 @@ -import { sortBy } from "lodash"; import { defineStore } from "pinia"; import { computed, reactive } from "vue"; import { isDev, useCool } from "/@/cool"; @@ -28,7 +27,7 @@ export const useDictStore = defineStore("dict", () => { const d: any = {}; for (const i in res) { - d[i] = sortBy(res[i], "orderNum").map((e) => { + d[i] = res[i].map((e: any) => { return { label: e.name, value: e.id diff --git a/src/modules/dict/views/list.vue b/src/modules/dict/views/list.vue index 1686230..590a822 100644 --- a/src/modules/dict/views/list.vue +++ b/src/modules/dict/views/list.vue @@ -24,7 +24,7 @@ ref="Table" :default-sort="{ prop: 'orderNum', - order: 'descending' + order: 'ascending' }" />