From fc7bd9a35d8279f0a8257444e4ef4a04f6eee8eb Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Mon, 31 May 2021 14:53:50 +0800
Subject: [PATCH] 升级nacos到最新版2.0.1 性能提升

---
 ruoyi-ui/vue.config.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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

--
Gitblit v1.9.3