24 lines
576 B
JavaScript
24 lines
576 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import Antd from 'ant-design-vue'
|
|
import './style.css'
|
|
import './styles/animations.css'
|
|
import './styles/frames.css'
|
|
import App from './App.vue'
|
|
import '@fortawesome/fontawesome-free/css/all.css' // 引入所有样式
|
|
// 注册路由
|
|
import router from './router'
|
|
// 滚动入场指令
|
|
import reveal from './directives/reveal'
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
// 注册Ant Design组件
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(Antd)
|
|
// 注册全局指令
|
|
app.directive('reveal', reveal)
|
|
app.mount('#app')
|