remove sleep function
This commit is contained in:
parent
1aeed45986
commit
223b9009fe
7
index.js
7
index.js
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user