This commit is contained in:
icssoa
2025-09-22 10:56:56 +08:00
parent a2e9828052
commit b25b95a8f0
3 changed files with 3 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ const saving = ref(false);
* 3. 请求后端接口,新增或更新地址
*/
function save() {
validate(async (valid, errors) => {
validate((valid, errors) => {
if (valid) {
ui.showLoading(t("保存中"));

View File

@@ -166,11 +166,7 @@ function reload() {
*/
function onInit(e: UniNativeViewInitEvent) {
svgRenderer = new CoolSvg(e.detail.element);
// 立即加载 SVG 内容
if (svgRenderer != null) {
reload();
}
reload();
}
/**

View File

@@ -97,9 +97,7 @@ export class Form {
};
// 验证整个表单
validate = (
callback: (valid: boolean, errors: ClFormValidateError[]) => void | Promise<void>
): void => {
validate = (callback: (valid: boolean, errors: ClFormValidateError[]) => void): void => {
this.formRef.value!.validate(callback);
};