|
|
@@ -28,7 +28,7 @@ function handleCreateProduct() {
|
|
|
name: name.value,
|
|
|
category: category.value,
|
|
|
price: price.value,
|
|
|
- photoUrlList: photoUrlList.value
|
|
|
+ photoUrlList: photoUrlList.value.filter(url => url !== '')
|
|
|
};
|
|
|
createProduct(payload).then(res => {
|
|
|
if (res.data.code === '000') {
|