catch error when loading theme config

master
adb-sh 2 years ago
parent 2ae7ad4cef
commit 4a6255185a

@ -3,12 +3,16 @@ import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import { createApi } from "@/Api";
import 'bootstrap-icons/font/bootstrap-icons.scss';
import './main.scss';
import { ThemeConfig } from 'bootstrap-darkmode';
import "bootstrap-icons/font/bootstrap-icons.scss";
import "./main.scss";
import { ThemeConfig } from "bootstrap-darkmode";
export const themeConfig = new ThemeConfig();
try {
themeConfig.initTheme();
} catch (e) {
console.error('failed to init theme');
}
createApp(App)
.use(router)

Loading…
Cancel
Save