优化代码

This commit is contained in:
RuoYi
2024-06-28 17:01:39 +08:00
parent 49d0fc0bdc
commit 6666ce5526
26 changed files with 253 additions and 8 deletions

View File

@@ -168,6 +168,7 @@ function submitForm() {
}
});
}
function getFormPromise(form) {
return new Promise(resolve => {
form.validate(res => {
@@ -175,6 +176,7 @@ function getFormPromise(form) {
});
});
}
function close() {
const obj = { path: "/tool/gen", query: { t: Date.now(), pageNum: route.query.pageNum } };
proxy.$tab.closeOpenPage(obj);