自动打开浏览器open库
自动打开浏览器open库
使用
INFO
用户设定host 或者 port,在浏览器自动打开链接
const open = require('open');
await open(`http://${this.config.host}:${this.config.port}`, { app: { name: 'google chrome' } });
INFO
用户设定host 或者 port,在浏览器自动打开链接
const open = require('open');
await open(`http://${this.config.host}:${this.config.port}`, { app: { name: 'google chrome' } });