fix(store-service): item 수정시 버그 수정
- item 수정시 버그 수정
This commit is contained in:
@@ -20,7 +20,7 @@ export default {
|
||||
return axios.get(process.env.VUE_APP_OWNER_SERVICE_BASEURL+'/store-service/api/owner/item/'+itemId)
|
||||
},
|
||||
saveItem(method, itemData){
|
||||
const _url = process.env.VUE_APP_OWNER_SERVICE_BASEURL+'/store-service/api/owner/item'+(method==='put'?+"/"+itemData.itemId:'')
|
||||
const _url = process.env.VUE_APP_OWNER_SERVICE_BASEURL+'/store-service/api/owner/item'+(method==='put'? "/"+itemData.itemId:'')
|
||||
console.log(_url)
|
||||
return axios({
|
||||
method:method,
|
||||
|
||||
@@ -163,6 +163,7 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
save : function () {
|
||||
this.dialog =false
|
||||
this.$emit('save')
|
||||
},
|
||||
addItemOption : function (itemOptionValue,optionType){
|
||||
|
||||
@@ -91,7 +91,7 @@ public class ItemServiceImpl implements ItemService {
|
||||
|
||||
itemOptionDtos
|
||||
.forEach(itemOptionDto -> {
|
||||
if(itemOptionDto.getId()==null) return;
|
||||
if(itemOptionDto.getId()!=null) return;
|
||||
if (itemOptionRepository.existsById(itemOptionDto.getId()))
|
||||
itemOptionRepository.save(ItemOptionDto.createItemOption(itemOptionDto, item));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user