|
|
@ -116,6 +116,7 @@
|
|
|
|
let data = _.cloneDeep(state.form);
|
|
|
|
let data = _.cloneDeep(state.form);
|
|
|
|
data.mainPicture = data.pictureList[0];
|
|
|
|
data.mainPicture = data.pictureList[0];
|
|
|
|
state.form.id = await store.dispatch('product/save', state.form);
|
|
|
|
state.form.id = await store.dispatch('product/save', state.form);
|
|
|
|
|
|
|
|
unref(state.refsForm).resetFields();
|
|
|
|
router.push({
|
|
|
|
router.push({
|
|
|
|
name: 'UpdateProduct',
|
|
|
|
name: 'UpdateProduct',
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|