From 6432d165c71213f90cda5c4ae250dd5b83a8cc05 Mon Sep 17 00:00:00 2001 From: ahao <liuhaoai545@gmail.com> Date: 星期五, 05 一月 2024 12:06:10 +0800 Subject: [PATCH] update 修复启动弹出cjs废弃警告 --- src/api/system/oss/index.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/system/oss/index.ts b/src/api/system/oss/index.ts index 6821d4e..4472112 100644 --- a/src/api/system/oss/index.ts +++ b/src/api/system/oss/index.ts @@ -5,7 +5,7 @@ // 鏌ヨOSS瀵硅薄瀛樺偍鍒楄〃 export function listOss(query: OssQuery): AxiosPromise<OssVO[]> { return request({ - url: '/system/oss/list', + url: '/resource/oss/list', method: 'get', params: query }); @@ -14,7 +14,7 @@ // 鏌ヨOSS瀵硅薄鍩轰簬id涓� export function listByIds(ossId: string | number): AxiosPromise<OssVO[]> { return request({ - url: '/system/oss/listByIds/' + ossId, + url: '/resource/oss/listByIds/' + ossId, method: 'get' }); } @@ -22,7 +22,7 @@ // 鍒犻櫎OSS瀵硅薄瀛樺偍 export function delOss(ossId: string | number | Array<string | number>) { return request({ - url: '/system/oss/' + ossId, + url: '/resource/oss/' + ossId, method: 'delete' }); } -- Gitblit v1.9.3