feat: 添加主题色设置功能

This commit is contained in:
pikachu1995@126.com
2026-07-07 10:56:14 +08:00
parent df35a26f9e
commit 295aaf1a01
16 changed files with 275 additions and 33 deletions

View File

@@ -10,6 +10,8 @@ import { setupLegacyMessage } from "@/utils/message";
import { registerGlobalComponents } from "@/components/global.js";
import * as filters from "./plugins/filters";
import storage from "@/plugins/storage";
import { fetchAndApplyTheme } from "@/utils/theme";
import { getThemeSetting } from "@/api/common.js";
const { aMapSecurityJsCode, inputMaxLength } = require("@/config");
@@ -49,6 +51,7 @@ app.config.globalProperties.connectCs = function (
window.open(url, "_blank");
};
router.isReady().then(() => {
router.isReady().then(async () => {
await fetchAndApplyTheme(getThemeSetting);
app.mount("#app");
});