From ad7bca3aaea8b2d04657bf5a23d64288a28c5fd7 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 26 Jan 2026 12:52:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BA=86=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=85=8D=E7=BD=AE=E7=9A=84API=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E4=B8=BA=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=B0=8F=E5=B1=8F=E5=B9=95=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/CategoryEditDialog.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/dialog/CategoryEditDialog.vue b/src/components/dialog/CategoryEditDialog.vue index 65fb398b..9d66ca39 100644 --- a/src/components/dialog/CategoryEditDialog.vue +++ b/src/components/dialog/CategoryEditDialog.vue @@ -4,6 +4,10 @@ import api from '@/api' import type { CategoryConfig } from '@/api/types' import { useToast } from 'vue-toastification' import { useI18n } from 'vue-i18n' +import { useDisplay } from 'vuetify' + +// 显示器宽度 +const display = useDisplay() // 定义输入参数 defineProps<{ @@ -139,7 +143,7 @@ const countryOptions = [ const fetchConfig = async () => { loading.value = true try { - const res: any = await api.get('category/') + const res: any = await api.get('media/category/config') if (res && res.data) { parseConfig(res.data) } @@ -330,7 +334,7 @@ const saveConfig = async () => { } }) - const res: any = await api.post('category/', payload) + const res: any = await api.post('media/category/config', payload) if (res && res.success) { toast.success(t('setting.category.saveSuccess')) emit('save') @@ -352,7 +356,7 @@ onMounted(() => {