update: 去掉console.log
This commit is contained in:
parent
a32a81616b
commit
d5fed6e7ff
|
@ -474,7 +474,6 @@ const handleDelete = (e: any) => {
|
||||||
};
|
};
|
||||||
const filesRef = ref();
|
const filesRef = ref();
|
||||||
const handleUpload = () => {
|
const handleUpload = () => {
|
||||||
// console.log(event.tempFilePaths)
|
|
||||||
return filesRef.value[0].filesList.map((item: any, index: number) => {
|
return filesRef.value[0].filesList.map((item: any, index: number) => {
|
||||||
if (item.fileID) {
|
if (item.fileID) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -279,7 +279,6 @@ export function isTwoDecimalPlaces(num: any) {
|
||||||
const str = num.toString().replace(/[-]+/g, "");
|
const str = num.toString().replace(/[-]+/g, "");
|
||||||
// 分割整数部分和小数部分
|
// 分割整数部分和小数部分
|
||||||
const parts = str.split(".");
|
const parts = str.split(".");
|
||||||
console.log(parts);
|
|
||||||
// 如果小数点后有两位数字,返回true
|
// 如果小数点后有两位数字,返回true
|
||||||
return parts.length === 2 && parts[1].length > 2;
|
return parts.length === 2 && parts[1].length > 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue