From 1b6f1e454fff0187d4d30dcf0d5819d4f57f1787 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Mon, 29 Aug 2022 01:05:14 +0800
Subject: [PATCH] 新增iframe 播放页 新增日志编辑页

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

diff --git a/vue.config.js b/vue.config.js
index 5f1c892..f8025fd 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -2,13 +2,13 @@
 module.exports = {
 	configureWebpack: (config) => {
 		config.module.rules.push({
-			test: /\.md/,
+			test: /\.(md|htm)$/,
 			use: [{
 				loader: 'text-loader', // 解决ivew组件 忽略前缀i的问题
 				options: {
 					prefix: false
 				}
-			}]
+			}, ]
 		})
 	},
 	css: {
@@ -18,7 +18,9 @@
 					// If you are using less-loader@5 please spread the lessOptions to options directly
 					modifyVars: {
 						"primary-color": "#1DA57A", // 全局主色
-						"link-color": "#1890ff", // 链接色
+						// "link-color": "#1890ff", // 链接色
+						"link-color": "#ffffff", // 链接色
+						"link-hover-color": "#30a9de",
 						"success-color": "#52c41a", // 成功色
 						"warning-color": "#faad14", // 警告色
 						"error-color": "#f5222d", // 错误色
@@ -35,4 +37,17 @@
 			},
 		},
 	},
+	devServer: {
+		port: 8080,
+		proxy: {
+			'/api': {
+				target: process.env.VUE_APP_API_BASE_URL,
+				ws: false,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '' // 需要rewrite的,
+				}
+			}
+		}
+	},
 };

--
Gitblit v1.9.1