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