File size: 637 Bytes
0163a2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import NotificationPlugin from './Notification';
import i18n from './i18n';

const urlParams = new URLSearchParams(window.location.search);
const theme = urlParams.get('theme');
if (theme === 'dark') {
  import('ant-design-vue/dist/antd.dark.css');
  document.body.classList.add('dark-theme');
} else {
  import('ant-design-vue/dist/antd.css');
}

import './assets/main.css'

const app = createApp(App);

app.use(createPinia())
    .use(NotificationPlugin)
    .use(Antd)
    .use(i18n)
    .mount('#app');