diff --git a/src/main.ts b/src/main.ts index 1c706199..b5d4bb91 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,11 +5,13 @@ import router from './router' import components from './components' import './style.css' import 'ant-design-vue/es/notification/style/css'; +import Antd from 'ant-design-vue/es' const app = createApp(App) app.use(store) app.use(router) app.use(components) +app.use(Antd) app.mount('#app') diff --git a/tsconfig.json b/tsconfig.json index 391539d7..85e86e89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,8 @@ "baseUrl": "./", "paths": { "@/*": ["./src/*"] - } + }, + "types": ["ant-design-vue/typings/global"] }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], "references": [{ "path": "./tsconfig.node.json" }]