fix(表单构建): 修复表单设计页面运行报错问题

This commit is contained in:
konbai
2022-09-15 01:46:26 +08:00
parent 10363327e1
commit 8ca8fde273
3 changed files with 97 additions and 3 deletions

View File

@@ -60,7 +60,7 @@
ref="previewPage"
class="result-wrapper"
frameborder="0"
src="preview.html"
src="/preview.html"
@load="iframeLoad"
/>
<div v-show="!isIframeLoaded" v-loading="true" class="result-wrapper" />

View File

@@ -456,9 +456,15 @@ export default {
this.operationType = 'download'
},
run() {
this.dialogVisible = true
this.showFileName = false
// TODO 弹窗类型异常
// this.dialogVisible = true
// this.showFileName = false
this.operationType = 'run'
let data = {
fileName: undefined,
type: 'file'
}
this.generate(data);
},
copy() {
this.dialogVisible = true