config/index.js里找到autoOpenBrowser将其设为true
在config/index.js 顶部添加:
const os = require(‘os’)
let localhost = ‘’
try {
const network = os.networkInterfaces()
localhost = network[Object.keys(network)[0]][1].address
} catch (e) {
localhost = ‘localhost’;
}
再找到host将其改为host:localhost即可