From e1eae8d6043860c6281f5def596db88439e4b0e9 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 04 七月 2024 18:06:15 +0800
Subject: [PATCH] 隐藏不必要字段
---
vue.config.js | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 43e9f92..cc6f74c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,8 +1,8 @@
-'use strict'
-const path = require('path')
+'use strict';
+const path = require('path');
-function resolve (dir) {
- return path.join(__dirname, dir)
+function resolve(dir) {
+ return path.join(__dirname, dir);
}
module.exports = {
@@ -19,7 +19,8 @@
hotOnly: false,
proxy: {
'/api': {
- target: 'http://localhost:8000',
+ // target: 'http://localhost:8000',
+ target: 'http://192.168.3.64:8000',
changeOrigin: true
}
}
@@ -31,12 +32,12 @@
filename: 'index.html'
}
},
- chainWebpack (config) {
+ chainWebpack(config) {
// set svg-sprite-loader
config.module
.rule('svg')
.exclude.add(resolve('src/icons'))
- .end()
+ .end();
config.module
.rule('icons')
.test(/\.svg$/)
@@ -47,6 +48,6 @@
.options({
symbolId: 'icon-[name]'
})
- .end()
+ .end();
}
-}
+};
--
Gitblit v1.8.0