From 560bcd639a3ae11fd073f005516463db81fc03fd Mon Sep 17 00:00:00 2001 From: wangshuaiswim Date: Fri, 30 Dec 2022 17:30:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0ant-design-vue?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 ++ tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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" }]