From 40f5cf2a8c324bf08fd5f0aec2e9da00e5f59f76 Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期六, 11 四月 2026 20:29:40 +0800
Subject: [PATCH] fix(user): 在职员工界面优化
---
vue.config.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index eef419f..0b69876 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,6 +1,7 @@
'use strict'
const settings = require('./src/settings.js')
const path = require('path')
+
function resolve(dir) {
return path.join(__dirname, dir)
}
@@ -28,6 +29,7 @@
devServer: {
port: port,
open: false,
+ disableHostCheck: true,
overlay: {
warnings: false,
errors: true
@@ -36,9 +38,8 @@
// change xxx-api/login => mock/login
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
+ target: '127.0.0.1:8301/',
// target: 'http://120.24.23.155:8301/',
- // target: 'http://120.24.23.155:7301/',
- target: 'http://127.0.0.1:8301/',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
@@ -50,6 +51,7 @@
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
+ devtool: 'source-map',
resolve: {
alias: {
'@': resolve('src')
@@ -101,7 +103,7 @@
.plugin('ScriptExtHtmlWebpackPlugin')
.after('html')
.use('script-ext-html-webpack-plugin', [{
- // `runtime` must same as runtimeChunk name. default is `runtime`
+ // `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}])
.end()
--
Gitblit v1.8.0