2024-08-26 14:07:57 +08:00
|
|
|
import { createApp } from 'vue';
|
|
|
|
import { router } from './router';
|
|
|
|
|
2024-08-27 18:44:46 +08:00
|
|
|
import '@mdi/font/css/materialdesignicons.css';
|
2024-08-31 14:05:10 +08:00
|
|
|
import '@/assets/fonts/index.css';
|
2024-08-27 18:44:46 +08:00
|
|
|
|
2024-08-31 14:02:26 +08:00
|
|
|
import lunisolar from 'lunisolar';
|
|
|
|
import lunisolarLang1 from 'lunisolar/locale/en';
|
|
|
|
import lunisolarLang2 from 'lunisolar/locale/zh-cn';
|
|
|
|
import lunisolarFestivals from 'lunisolar/markers/festivals.zh-cn';
|
|
|
|
|
2024-08-26 14:07:57 +08:00
|
|
|
import App from './App.vue';
|
|
|
|
|
2024-08-31 14:02:26 +08:00
|
|
|
// 加载 Lunisolar 语言包
|
|
|
|
lunisolar.locale([
|
|
|
|
lunisolarLang1,
|
|
|
|
lunisolarLang2,
|
|
|
|
], false);
|
|
|
|
|
|
|
|
// 加载 Lunisolar 节日列表
|
|
|
|
lunisolar.Markers.add(lunisolarFestivals, 'festivals');
|
|
|
|
|
|
|
|
// Lunisolar 全局配置
|
|
|
|
lunisolar.config({
|
|
|
|
isUTC: false,
|
|
|
|
lang: 'zh-cn',
|
|
|
|
});
|
|
|
|
|
2024-08-26 14:07:57 +08:00
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(router);
|
|
|
|
app.mount('#app');
|