From 7fa3b721871b737898951797590a20aaed484a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A3=AE?= Date: Tue, 27 Feb 2024 17:06:39 +0800 Subject: [PATCH] =?UTF-8?q?changes=20=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 14 ++++++++++++++ vite.config.ts | 1 + 2 files changed, 15 insertions(+) diff --git a/components.d.ts b/components.d.ts index 7fa6b1b..7e3fdac 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,6 +7,20 @@ export {} declare module 'vue' { export interface GlobalComponents { + ElButton: typeof import('element-plus/es')['ElButton'] + ElCard: typeof import('element-plus/es')['ElCard'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTabPane: typeof import('element-plus/es')['ElTabPane'] + ElTabs: typeof import('element-plus/es')['ElTabs'] + ElText: typeof import('element-plus/es')['ElText'] + ElUpload: typeof import('element-plus/es')['ElUpload'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/vite.config.ts b/vite.config.ts index 2e1c9a9..35e1c6c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -69,6 +69,7 @@ export default defineConfig({ // 是否开启 https https: false, // 端口号 + port: 8849, host: "0.0.0.0", // 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy proxy: {