diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index cfc179bb..486801b1 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -123,12 +123,7 @@ module.exports = { } } }) - - config.optimization.runtimeChunk('single'), - { - from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 - to: './' //到根目录下 - } + config.optimization.runtimeChunk('single') }) } }