remove sleep function

This commit is contained in:
陆柯 2021-09-05 23:10:22 +08:00
parent 1aeed45986
commit 223b9009fe

View File

@ -22,8 +22,6 @@ module.exports = {
BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER或云服务 CLOUD。应当根据实际需要在前端所用的 unitool 里覆盖。
sleep: (ms) => new Promise((resolve, reject) => setTimeout(resolve, ms)),
// 快速输出详尽提示,可用来取代 console.log
clog(...message) {
console.log(
@ -79,7 +77,10 @@ module.exports = {
return route
}
let port = this.SERVER_PORT || 6789
let port = this.SERVER_PORT
// #ifdef H5
|| window.location.port
// #endif
let hostname
let protocol
if (process.env.NODE_ENV === 'production') {