From 67d22fb0aeb9fe90b766abae0e41cb04aebc1296 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 17 五月 2024 15:45:09 +0800
Subject: [PATCH] 页码监听

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

diff --git a/vue.config.js b/vue.config.js
index 8078cb6..e848709 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,14 +1,28 @@
+// const { publicCtx } = require("@/assets/js/config");
+// import {publicCtx} from '@/assets/js/config'
 const { defineConfig } = require("@vue/cli-service");
 module.exports = defineConfig({
-  publicPath: "./",
+  // publicPath: 'http://182.92.203.7:3007/books/book/1',
+  publicPath:'/books/book/1',
   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`
-    }
+    },
   },
   chainWebpack: (config) => {
     config.module

--
Gitblit v1.9.1