From 541a6ab5310e6bea552819753109181715b40cba Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Tue, 24 Oct 2023 23:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/pages/config/router.vue | 34 ++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/admin/src/pages/config/router.vue b/admin/src/pages/config/router.vue index 6d37157..0f1337f 100644 --- a/admin/src/pages/config/router.vue +++ b/admin/src/pages/config/router.vue @@ -15,7 +15,9 @@ import { import icons_json from '@icon-park/vue-next/icons.json'; const icons_search = ref('') +const icons_show = ref(true) const icons_list = computed(() => { + icons_show.value = false let list = [] let search = icons_search.value if (!!search) { @@ -51,6 +53,9 @@ const icons_list = computed(() => { for (let i in list_turn) { ret.push(list_turn[i]) } + setTimeout(() => { + icons_show.value = true + }) return ret }) @@ -148,13 +153,13 @@ const AdminDelete = async () => { } const deleteClick = () => { window.$box.confirm( - '是否确认删除该路由?', - '注意!删除后会影响系统运行!', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - } + '是否确认删除该路由?', + '注意!删除后会影响系统运行!', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + } ).then(() => { AdminDelete() }).catch(() => { @@ -200,7 +205,7 @@ const editDoneClick = async () => { } table_list.value.splice(index, 1); } - nextTick(()=>{ + nextTick(() => { if (data.pid === 0) { if (!('children' in response.data.info)) { response.data.info.children = []; @@ -232,6 +237,11 @@ const iconChooseClick = (icon) => { }) icon_show.value = false } + +const iconClick = () => { + icon_show.value = true + icons_show.value = true +}