let url = __config.C_PATH + '/project/detail/export?projectId='+this.row.id+'&exportModules='+this.exportModules.join()+'&preview='+this.preview
//
const newWindow = window.open('about:blank', '预览');
newWindow.document.title = '预览';
let iframe = document.createElement('iframe');
iframe.src = url;
iframe.style.width = '100%';
iframe.style.height = '100vh';
iframe.style.margin = '0';
iframe.style.padding = '0';
iframe.style.overflow = 'hidden';
iframe.style.border = 'none';
newWindow.document.body.style.margin = '0';
newWindow.document.body.appendChild(iframe);
打开新标签改标题
最新推荐文章于 2024-05-26 17:11:42 发布