From 5cd7db9dc319ce7e2e81511910ec03f9aed34b0b Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 12 十二月 2024 09:49:35 +0800
Subject: [PATCH] refactor(components): 优化节点组件并添加输入框自动聚焦功能

---
 vite.config.ts |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 5b25f9d..919f58d 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -7,6 +7,7 @@
 import { defineConfig, loadEnv } from 'vite';
 import viteCompression from 'vite-plugin-compression';
 import vueSetupExtend from 'vite-plugin-vue-setup-extend-plus';
+import { CodeInspectorPlugin } from 'code-inspector-plugin';
 
 const pathResolve = (dir: string) => {
 	return resolve(__dirname, '.', dir);
@@ -21,6 +22,10 @@
 	const env = loadEnv(mode.mode, process.cwd());
 	return {
 		plugins: [
+			CodeInspectorPlugin({
+				bundler: 'vite',
+				hotKeys: ['shiftKey'],
+			}),
 			vue(),
 			vueSetupExtend(),
 			viteCommonjs(),
@@ -39,7 +44,7 @@
 			host: '0.0.0.0',
 			port: env.VITE_PORT as unknown as number,
 			open: JSON.parse(env.VITE_OPEN),
-			hmr: true,
+			hmr: false,
 			proxy: {
 				'/gitee': {
 					target: 'https://gitee.com',

--
Gitblit v1.9.3