From 7fb2efa58b1b3276e820f3279efb18a67fe3e5ce Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期三, 22 五月 2024 14:16:24 +0800
Subject: [PATCH] 调整数据,清理无用代码,优化结构

---
 vue.config.js |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 8078cb6..9b41f49 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,14 +1,26 @@
 const { defineConfig } = require("@vue/cli-service");
 module.exports = defineConfig({
-  publicPath: "./",
+  // publicPath: 'http://182.92.203.7:3007/books/book/3',
+  publicPath:'/books/book',
   transpileDependencies: true,
   lintOnSave: false,
+  // devServer: {
+  //   open: true,
+  //   historyApiFallback: true,
+  //   allowedHosts: "all",
+  //   headers: {
+  //     "access-control-allow-origin": "*",
+  //   },
+  //   client: {
+  //     overlay: { warnings: false, errors: true }
+  //   }
+  // },
   configureWebpack: {
     output: {
       library: `app-content`,
       libraryTarget: "umd",
-      chunkLoadingGlobal: `webpackJsonp_app-content`
-    }
+      chunkLoadingGlobal: `webpackJsonp_app-content`,
+    },
   },
   chainWebpack: (config) => {
     config.module
@@ -20,8 +32,8 @@
       .loader("change-prefix-loader")
       .options({
         prefix: "el-",
-        replace: "gp-"
+        replace: "gp-",
       })
       .end();
-  }
+  },
 });

--
Gitblit v1.9.1