mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
chore:
This commit is contained in:
@@ -34,6 +34,14 @@ export async function SettingsSave(key: string, setting: any) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function HeaderMenusSettingsSave(setting: any) {
|
||||
return await request({
|
||||
url: apiPrefix + "/headerMenus/save",
|
||||
method: "post",
|
||||
data: setting
|
||||
});
|
||||
}
|
||||
|
||||
export async function EmailSettingsGet() {
|
||||
return await request({
|
||||
url: apiPrefix + "/getEmailSettings",
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AddReq, compute, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq,
|
||||
import { useSettingStore } from "/@/store/modules/settings";
|
||||
import { cloneDeep, find, merge, remove } from "lodash-es";
|
||||
import { nanoid } from "nanoid";
|
||||
import { SettingsSave } from "../api";
|
||||
import { HeaderMenusSettingsSave, SettingsSave } from "../api";
|
||||
import { utils } from "/@/utils";
|
||||
|
||||
export default function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
||||
@@ -16,7 +16,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
|
||||
async function saveMenus() {
|
||||
const menus = settingStore.headerMenus;
|
||||
await SettingsSave("sys.header.menus", menus);
|
||||
await HeaderMenusSettingsSave(menus);
|
||||
}
|
||||
|
||||
const expandedRowKeys = ref<string[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user