From af8e5d35d64f9ca894cd933d0cfbea8f067abcbf Mon Sep 17 00:00:00 2001
From: TreeWish <1131093754@qq.com>
Date: 星期四, 16 二月 2023 09:41:19 +0800
Subject: [PATCH] '一张图页面整体编写'

---
 vue.config.js |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 0b3fcbf..6c5461f 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,9 +1,19 @@
+const path = require("path")
+const resolve = dir => path.join(__dirname, dir)
 module.exports = {
   lintOnSave: false,
-  publicPath: './',
+  publicPath: "./",
   devServer: {
-    host: '0.0.0.0', //鎸囧畾瑕佷娇鐢ㄧ殑 host
+    host: "0.0.0.0", //鎸囧畾瑕佷娇鐢ㄧ殑 host
     port: 12315, //鎸囧畾绔彛鍙蜂互渚﹀惉
     hotOnly: false, //鍚敤鐑ā鍧楁浛鎹紝鑰屾棤闇�椤甸潰鍒锋柊浣滀负鏋勫缓澶辫触鏃剁殑鍥為��銆�
   },
-};
+
+  configureWebpack: {
+    resolve: {
+      alias: {
+        "@": resolve("src"),
+      },
+    },
+  },
+}

--
Gitblit v1.9.3