From a31427127c634324cbb289e84cce0f23ce05e976 Mon Sep 17 00:00:00 2001 From: Live <1005297262@qq.com> Date: Mon, 8 Jun 2020 18:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=A6=81=E6=AD=A2=E6=89=80=E6=9C=89=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E6=94=B6=E5=BD=95=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/vue.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 963a82383..f568b20c7 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -118,6 +118,10 @@ module.exports = { } }) config.optimization.runtimeChunk('single') + }, + { + from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件 + to:'./',//到根目录下 } ) }