z自定义指令
This commit is contained in:
@@ -2,8 +2,13 @@ import { ViteSSG } from 'vite-ssg'
|
||||
import App from './App.vue'
|
||||
import { routes } from './routes'
|
||||
import './style.css'
|
||||
import directives from './directives/index'
|
||||
|
||||
|
||||
// 注册指令
|
||||
export const createApp = ViteSSG(App, {
|
||||
routes,
|
||||
base: import.meta.env.BASE_URL,
|
||||
routes,
|
||||
base: import.meta.env.BASE_URL,
|
||||
}, ({ app }) => {
|
||||
app.use(directives)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user