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即可