perf: 顶部菜单自定义

This commit is contained in:
xiaojunnuo
2024-10-27 02:51:56 +08:00
parent 661293c189
commit 54d136cc6a
12 changed files with 192 additions and 98 deletions
@@ -64,6 +64,7 @@ import * as api from "./api";
import { notification } from "ant-design-vue";
import { useSettingStore } from "/src/store/modules/settings";
import { useUserStore } from "/@/store/modules/user";
import { merge } from "lodash-es";
defineOptions({
name: "SiteSetting"
@@ -85,7 +86,7 @@ async function loadSysSiteSettings() {
if (data == null) {
return;
}
Object.assign(formState, data);
merge(formState, data);
}
const saveLoading = ref(false);
loadSysSiteSettings();