You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
586 B
TypeScript
25 lines
586 B
TypeScript
import {createApp} from 'vue'
|
|
import {createPinia} from 'pinia'
|
|
import gettext from './gettext'
|
|
import App from './App.vue'
|
|
import router from './routes'
|
|
//import 'ant-design-vue/dist/antd.less'
|
|
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
import {useSettingsStore} from '@/pinia'
|
|
|
|
|
|
const pinia = createPinia()
|
|
|
|
const app = createApp(App)
|
|
|
|
pinia.use(piniaPluginPersistedstate)
|
|
app.use(pinia)
|
|
app.use(gettext)
|
|
// after pinia created
|
|
const settings = useSettingsStore()
|
|
gettext.current = settings.language || 'en'
|
|
|
|
app.use(router).mount('#app')
|
|
|
|
export default app
|