mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 19:07:25 +08:00
feat: 添加主题色设置功能
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user