From 18b6eb51898598c25c0873c145e7bbec65c048df Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期六, 06 四月 2024 09:47:43 +0800
Subject: [PATCH] feat: 信息录入的合同信息中的性别使用数据字典下拉选择
---
vue.config.js | 50 +++++++++++++++++++++++++++-----------------------
1 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 3b722e1..e8c710a 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,7 +38,8 @@
// change xxx-api/login => mock/login
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: 'http://localhost:8301/',
+ target: 'http://120.24.23.155:8301/',
+ // target: 'http://120.24.23.155:8301/',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
@@ -48,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')
@@ -99,34 +103,34 @@
.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()
config
.optimization.splitChunks({
- chunks: 'all',
- cacheGroups: {
- libs: {
- name: 'chunk-libs',
- test: /[\\/]node_modules[\\/]/,
- priority: 10,
- chunks: 'initial' // only package third parties that are initially dependent
- },
- elementUI: {
- name: 'chunk-elementUI', // split elementUI into a single package
- priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
- test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
- },
- commons: {
- name: 'chunk-commons',
- test: resolve('src/components'), // can customize your rules
- minChunks: 3, // minimum common number
- priority: 5,
- reuseExistingChunk: true
- }
+ chunks: 'all',
+ cacheGroups: {
+ libs: {
+ name: 'chunk-libs',
+ test: /[\\/]node_modules[\\/]/,
+ priority: 10,
+ chunks: 'initial' // only package third parties that are initially dependent
+ },
+ elementUI: {
+ name: 'chunk-elementUI', // split elementUI into a single package
+ priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
+ test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
+ },
+ commons: {
+ name: 'chunk-commons',
+ test: resolve('src/components'), // can customize your rules
+ minChunks: 3, // minimum common number
+ priority: 5,
+ reuseExistingChunk: true
}
- })
+ }
+ })
config.optimization.runtimeChunk('single')
}
)
--
Gitblit v1.8.0