From b60b839302d34048c216e9fd85b3a84caea257ea Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期二, 11 六月 2024 10:36:17 +0800
Subject: [PATCH] 1

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

diff --git a/vue.config.js b/vue.config.js
index ec3deaa..b375ec8 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,9 +1,6 @@
-// const { publicCtx } = require("@/assets/js/config");
-// import {publicCtx} from '@/assets/js/config'
 const { defineConfig } = require("@vue/cli-service");
 module.exports = defineConfig({
-  // publicPath: 'http://182.92.203.7:3007/books/book/1',
-  publicPath:'/books/book/1',
+  publicPath: process.env.PUBLIC_PATH,
   transpileDependencies: true,
   lintOnSave: false,
   // devServer: {
@@ -21,8 +18,8 @@
     output: {
       library: `app-content`,
       libraryTarget: "umd",
-      chunkLoadingGlobal: `webpackJsonp_app-content`,
-    },
+      chunkLoadingGlobal: `webpackJsonp_app-content`
+    }
   },
   chainWebpack: (config) => {
     config.module
@@ -34,8 +31,8 @@
       .loader("change-prefix-loader")
       .options({
         prefix: "el-",
-        replace: "gp-",
+        replace: "gp-"
       })
       .end();
-  },
+  }
 });

--
Gitblit v1.9.1