2026-05-14 09:53:22 +08:00
|
|
|
import { ViteSSG } from 'vite-ssg'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import { routes } from './routes'
|
2026-05-14 15:31:34 +08:00
|
|
|
// import './style.css'
|
|
|
|
|
import '@/assets/css/style.less'
|
2026-05-14 14:23:32 +08:00
|
|
|
import directives from './directives/index'
|
2026-05-18 10:39:52 +08:00
|
|
|
import i18n from './lang/index'
|
2026-05-14 09:53:22 +08:00
|
|
|
|
|
|
|
|
export const createApp = ViteSSG(App, {
|
2026-05-18 10:39:52 +08:00
|
|
|
routes,
|
|
|
|
|
base: import.meta.env.BASE_URL,
|
|
|
|
|
},
|
2026-05-15 10:29:21 +08:00
|
|
|
({ app }) => {
|
2026-05-14 14:55:42 +08:00
|
|
|
// 注册全局指令
|
|
|
|
|
app.use(directives)
|
2026-05-18 10:39:52 +08:00
|
|
|
app.use(i18n)
|
2026-05-14 14:55:42 +08:00
|
|
|
}
|
2026-05-15 10:29:21 +08:00
|
|
|
)
|