From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 07 十一月 2023 15:47:13 +0800 Subject: [PATCH] bug --- web_standard/src/utils/form.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/web_standard/src/utils/form.js b/web_standard/src/utils/form.js index 4d6b612..667e154 100644 --- a/web_standard/src/utils/form.js +++ b/web_standard/src/utils/form.js @@ -35,3 +35,12 @@ } callback() } + +export function numRule(rule, value, callback) { + // debugger + if (value == null || value < 0 || !value) { + callback(new Error()) + } else { + callback() + } +} -- Gitblit v1.9.3