import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './index.css'
import './design-tokens.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'

// 配置PDF.js工作器
import * as pdfjsLib from 'pdfjs-dist'

// 使用正确的工作器路径
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.8.69/pdf.worker.min.js'

const app = createApp(App)
app.use(Antd)
app.use(router)
app.mount('#root')