diff --git a/src/utils/print.js b/src/utils/print.js index 058619b..12e1910 100644 --- a/src/utils/print.js +++ b/src/utils/print.js @@ -19,7 +19,11 @@ export async function print(printJs, isLog, form, logContent) { const regexField = /]*>(.*?)<\/field>/g; let fieldMaths = [] let match; - + console.log("printStr",printStr) + if(!printStr){ + window.alert("暂无打印模板") + return + } while ((match = regexField.exec(printJs)) !== null) { fieldMaths.push(match[0]); // 提取 之间的内容 } diff --git a/src/views/flow/list.vue b/src/views/flow/list.vue index b30abb4..a46f254 100644 --- a/src/views/flow/list.vue +++ b/src/views/flow/list.vue @@ -147,8 +147,8 @@ type="primary" size="small" @click="showExport" - >导出 - + >导出