Initial commit: 积分兑换电商平台多商户版 MER-2.2
Made-with: Cursor
This commit is contained in:
9
mer_plat_admin/plop-templates/utils.js
Normal file
9
mer_plat_admin/plop-templates/utils.js
Normal file
@@ -0,0 +1,9 @@
|
||||
exports.notEmpty = (name) => {
|
||||
return (v) => {
|
||||
if (!v || v.trim === '') {
|
||||
return `${name} is required`;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user