refactor: 1

pull/67/head
xiaojunnuo 2021-03-26 09:48:52 +08:00
parent 662ba4c132
commit 6ca220d9d0
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ const serverApi = {
const allConfig = config.get()
const serverConfig = lodash.cloneDeep(allConfig.server)
let intercepts = serverConfig.intercepts
const intercepts = serverConfig.intercepts
const dnsMapping = serverConfig.dns.mapping
if (allConfig.plugin) {
@ -57,7 +57,7 @@ const serverApi = {
if (serverConfig.intercept.enabled === false) {
// 如果设置为关闭拦截
intercepts = {}
serverConfig.intercepts = {}
}
for (const key in plugins) {