diff --git a/src/api/i18n.ts b/src/api/i18n.ts index 272e7a6..b93d01c 100644 --- a/src/api/i18n.ts +++ b/src/api/i18n.ts @@ -31,6 +31,18 @@ export const deleteLocaleAPI = (id: string) => { return http.request("post", `/api/i18n/deleteLocale/${id}`); }; +/** + * + * 批量删除语言类型 + */ +export const deleteLocaleListAPI = (ids: string[]) => { + return http.request("post", `/api/i18n/deleteLocaleList`, { + data: { + ids + } + }); +}; + /** * 修改语言类型 */ @@ -138,6 +150,18 @@ export const getI18nInfoAPI = (id: string) => { export const deleteI18nAPI = (id: string) => { return http.request("post", `/api/i18n/deleteI18n/${id}`); }; + +/** + * + * 批量删除翻译 + */ +export const deleteI18nListAPI = (ids: string[]) => { + return http.request("post", `/api/i18n/deleteI18nList`, { + data: { + ids + } + }); +}; /** * 修改翻译 * @param data diff --git a/src/views/system/i18n/index.vue b/src/views/system/i18n/index.vue index 6ecb801..c483e87 100644 --- a/src/views/system/i18n/index.vue +++ b/src/views/system/i18n/index.vue @@ -54,6 +54,7 @@