From cb7779098c51922d0d7f26568475d350a9f1fad0 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 29 Jul 2022 19:08:22 +0800 Subject: [PATCH] 添加马甲认证,添加小红点更新 --- vue.config.js | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/vue.config.js b/vue.config.js index e448f53..f8025fd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -2,7 +2,7 @@ module.exports = { configureWebpack: (config) => { config.module.rules.push({ - test: /\.md$/, + test: /\.(md|htm)$/, use: [{ loader: 'text-loader', // 解决ivew组件 忽略前缀i的问题 options: { @@ -37,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