From 93a3d7d35c0d19a6b25f680fbc47df189f105d8f Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 15 Jul 2026 10:58:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E7=B1=BB=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=EF=BC=8828=E4=B8=AA=E9=A2=84?= =?UTF-8?q?=E8=AE=BE=E5=9B=BE=E6=A0=87=EF=BC=8C=E6=94=AF=E6=8C=81=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=92=8C=E8=87=AA=E5=AE=9A=E4=B9=89=E8=BE=93=E5=85=A5?= =?UTF-8?q?=EF=BC=89=20-=20=E6=9B=BF=E6=8D=A2=E4=B8=BA=20el-select=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E9=80=89=E6=8B=A9=20-=2028=E4=B8=AA=E5=B8=B8?= =?UTF-8?q?=E7=94=A8=E5=9B=BE=E6=A0=87=EF=BC=88=E6=98=9F=E6=98=9F/?= =?UTF-8?q?=E7=81=AB/=E7=94=B5=E8=84=91/=E5=B7=A5=E5=85=B7/=E7=BE=8E?= =?UTF-8?q?=E9=A3=9F/=E6=95=99=E8=82=B2=E7=AD=89=EF=BC=89=20-=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20filterable=20=E6=90=9C=E7=B4=A2=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=20-=20=E6=94=AF=E6=8C=81=20allow-create=20=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E8=87=AA=E5=AE=9A=E4=B9=89=20emoji=20-=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20clearable=20=E6=B8=85=E7=A9=BA=EF=BC=88?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=9B=9E=E9=80=80=F0=9F=94=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/admin/Categories.vue | 38 ++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/admin/Categories.vue b/frontend/src/views/admin/Categories.vue index 6b0bd93..74df9af 100644 --- a/frontend/src/views/admin/Categories.vue +++ b/frontend/src/views/admin/Categories.vue @@ -26,7 +26,12 @@ - + + + {{ emoji }} + {{ label }} + + @@ -55,6 +60,37 @@ const editId = ref(null) const form = ref({ icon: '', name: '', sort: 0 }) const dialogWidth = computed(() => window.innerWidth < 500 ? '92%' : '420px') +const iconOptions: Record = { + '🌟': '星星', + '🔥': '火', + '💻': '电脑', + '📱': '手机', + '🛠️': '工具', + '🎮': '游戏', + '📚': '书籍', + '📰': '新闻', + '💼': '工作', + '🏠': '家', + '🚗': '车', + '✈️': '旅行', + '🎵': '音乐', + '🎬': '影视', + '📷': '摄影', + '💪': '健身', + '👗': '服饰', + '💄': '美妆', + '🍔': '美食', + '☕': '咖啡', + '🎓': '教育', + '💊': '医疗', + '🐱': '宠物', + '🎁': '礼物', + '💰': '钱包', + '📊': '数据', + '🔧': '维修', + '🎨': '设计', +} + async function load() { categories.value = (await adminApi.getCategories()).result.data }