async preview() {
// 获取配置信息
const config = this.groupList
// 后端渲染
const page = await axios.post('http://localhost:8001/export', config)
// 打开新页面
var newwin = window.open('', '', '') //打开一个窗口并赋给变量newwin。
newwin.opener = null // 防止代码对论谈页面修改
newwin.document.write(page.data) //向这个打开的窗口中写入代码code,这样就实现了运行代码功能。
newwin.document.close()
}
← 对象递归取值