From aed8c89dedf94b98c4b6e988388fbe147f99dab5 Mon Sep 17 00:00:00 2001 From: David Wei <> Date: Sun, 8 Oct 2023 16:05:58 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=8F=82=E6=95=B0=E9=94=AE=E5=90=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=94=AE=E5=80=BC=E6=8E=A5=E5=8F=A3=E7=9A=84=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/config/index.ts | 2 +- src/views/system/oss/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/system/config/index.ts b/src/api/system/config/index.ts index 2eb7b94..e52a256 100644 --- a/src/api/system/config/index.ts +++ b/src/api/system/config/index.ts @@ -20,7 +20,7 @@ export function getConfig(configId: string | number): AxiosPromise { } // 根据参数键名查询参数值 -export function getConfigKey(configKey: string): AxiosPromise { +export function getConfigKey(configKey: string): AxiosPromise { return request({ url: '/system/config/configKey/' + configKey, method: 'get' diff --git a/src/views/system/oss/index.vue b/src/views/system/oss/index.vue index ebb7610..ec11708 100644 --- a/src/views/system/oss/index.vue +++ b/src/views/system/oss/index.vue @@ -194,7 +194,7 @@ const { queryParams, form, rules } = toRefs(data); const getList = async () => { loading.value = true; const res = await proxy?.getConfigKey("sys.oss.previewListResource"); - previewListResource.value = res?.msg === undefined ? true : res.msg === 'true'; + previewListResource.value = res?.data === undefined ? true : res.data === 'true'; const response = await listOss(proxy?.addDateRange(queryParams.value, dateRangeCreateTime.value, "CreateTime")); ossList.value = response.rows; total.value = response.total;