Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
0c069a57
Commit
0c069a57
authored
Jun 09, 2020
by
Live
Committed by
Gitee
Jun 09, 2020
Browse files
项目添加robots.txt 防止后台管理系统被搜索引擎收录
parent
19b86887
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/vue.config.js
View file @
0c069a57
...
...
@@ -117,7 +117,11 @@ module.exports = {
}
}
})
config
.
optimization
.
runtimeChunk
(
'
single
'
)
config
.
optimization
.
runtimeChunk
(
'
single
'
),
{
from
:
path
.
resolve
(
__dirname
,
'
./public/robots.txt
'
),
//防爬虫文件
to
:
'
./
'
,
//到根目录下
}
}
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment