add: 优化

This commit is contained in:
gyq 2025-09-22 10:38:54 +08:00
parent 9eb3b8e306
commit 6635a6374c
2 changed files with 3 additions and 2 deletions

View File

@ -633,7 +633,8 @@ const fullAmountValidate = (rule, value, callback) => {
}
};
const fullAmountValidate2 = (rule, value, callback) => {
if (form.value.fullAmount < 0 || form.value.fullAmount == "") {
console.log(form.value.fullAmount);
if (form.value.fullAmount < 0 || form.value.fullAmount === "") {
callback(new Error("请输入使用门槛"));
} else {
callback();

View File

@ -132,7 +132,7 @@ const configs = [
const activeTab = ref("basic");
const useTypeList = ref([
{ label: "堂食", value: "dine-in" },
{ label: "外带", value: "take-out" },
{ label: "自取", value: "take-out" },
{ label: "外卖", value: "take-away" },
{ label: "快递", value: "post" },
]);