|
@@ -1,5 +1,6 @@
|
|
|
import { $postParam, $post } from "@/plugins/axios";
|
|
|
import { fileMD5 } from "@/plugins/md5";
|
|
|
+import { isNull } from "@/plugins/utils";
|
|
|
|
|
|
export const cardConfigInfos = (id) => {
|
|
|
return $postParam("/api/admin/basic/card_rule/get_one", { id });
|
|
@@ -31,7 +32,7 @@ export const saveCard = async (datas, config = {}) => {
|
|
|
const md5 = await fileMD5(file);
|
|
|
formData.append(`${key}Md5`, md5);
|
|
|
} else {
|
|
|
- formData.append(key, val);
|
|
|
+ if (!isNull(val)) formData.append(key, val);
|
|
|
}
|
|
|
}
|
|
|
|