Commit 0c069a57ccb294b7fbffd6e9d43c7a7f93394da3

Authored by Live
Committed by Gitee
1 parent 19b86887

项目添加robots.txt 防止后台管理系统被搜索引擎收录

Showing 1 changed file with 5 additions and 1 deletions
ruoyi-ui/vue.config.js
@@ -117,7 +117,11 @@ module.exports = { @@ -117,7 +117,11 @@ module.exports = {
117 } 117 }
118 } 118 }
119 }) 119 })
120 - config.optimization.runtimeChunk('single') 120 + config.optimization.runtimeChunk('single'),
  121 + {
  122 + from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件
  123 + to:'./',//到根目录下
  124 + }
121 } 125 }
122 ) 126 )
123 } 127 }