优化网络请求,尝试去解决无法连接服务器的问题

This commit is contained in:
lyswhut
2021-06-16 10:23:48 +08:00
parent 66631ac105
commit 198238d4b5
13 changed files with 48 additions and 22 deletions
-6
View File
@@ -20,7 +20,6 @@
</template>
<script>
import dnscache from 'dnscache'
import { mapMutations, mapGetters, mapActions } from 'vuex'
import { rendererOn, rendererSend, rendererInvoke, NAMES } from '../common/ipc'
import { isLinux } from '../common/utils'
@@ -30,11 +29,6 @@ import { base as eventBaseName } from './event/names'
import apiSourceInfo from './utils/music/api-source-info'
window.ELECTRON_DISABLE_SECURITY_WARNINGS = process.env.ELECTRON_DISABLE_SECURITY_WARNINGS
dnscache({
enable: true,
ttl: 21600,
cachesize: 1000,
})
const listThrottle = (fn, delay = 100) => {
let timer = null