From 50b2839f3e40a0693b51fe0fe1e492ab86043907 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期一, 11 五月 2026 18:31:14 +0800
Subject: [PATCH] 优化
---
src/main.js | 6 +++---
vite.config.js | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/main.js b/src/main.js
index 5391ace..3c7ec9c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -24,9 +24,9 @@
app.component(key, component)
}
-import('vconsole').then((module) => {
- new module.default()
-})
+// import('vconsole').then((module) => {
+// new module.default()
+// })
app.config.globalProperties.$rules = ruleGenerator
app.config.globalProperties.$property = property
diff --git a/vite.config.js b/vite.config.js
index 2f4c118..543eb21 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,6 +8,9 @@
export default defineConfig({
base: '/examination/verify',
plugins: [vue(), vueDevTools()],
+ esbuild: {
+ drop: ['console', 'debugger']
+ },
define: {
// 娉ㄥ叆鏋勫缓鏃堕棿鎴冲埌浠g爜涓�
'__BUILD_TIME__': JSON.stringify(timestamp)
--
Gitblit v1.8.0