From 376b8d8b137098c3e728cd94bf8a76a373cceed0 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Wed, 6 Jul 2022 16:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dict/store/dict.ts | 3 +-- src/modules/dict/views/list.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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' }" />