fix: product description
This commit is contained in:
parent
39f79fbda5
commit
6b3cde90a3
2 changed files with 11 additions and 7 deletions
|
|
@ -201,7 +201,7 @@
|
||||||
<q-input
|
<q-input
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
v-model.trim="productDialog.data.description"
|
v-model.trim="productDialog.data.config.description"
|
||||||
label="Description"
|
label="Description"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-select
|
<q-select
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,14 @@ async function stallDetails(path) {
|
||||||
data: {
|
data: {
|
||||||
id: null,
|
id: null,
|
||||||
name: '',
|
name: '',
|
||||||
description: '',
|
|
||||||
categories: [],
|
categories: [],
|
||||||
image: null,
|
image: null,
|
||||||
price: 0,
|
price: 0,
|
||||||
quantity: 0
|
|
||||||
|
quantity: 0,
|
||||||
|
config: {
|
||||||
|
description: ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
productsFilter: '',
|
productsFilter: '',
|
||||||
|
|
@ -210,9 +213,7 @@ async function stallDetails(path) {
|
||||||
price: this.productDialog.data.price,
|
price: this.productDialog.data.price,
|
||||||
quantity: this.productDialog.data.quantity,
|
quantity: this.productDialog.data.quantity,
|
||||||
categories: this.productDialog.data.categories,
|
categories: this.productDialog.data.categories,
|
||||||
config: {
|
config: this.productDialog.data.config
|
||||||
description: this.productDialog.data.description
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.productDialog.showDialog = false
|
this.productDialog.showDialog = false
|
||||||
if (this.productDialog.data.id) {
|
if (this.productDialog.data.id) {
|
||||||
|
|
@ -298,7 +299,10 @@ async function stallDetails(path) {
|
||||||
categories: [],
|
categories: [],
|
||||||
image: null,
|
image: null,
|
||||||
price: 0,
|
price: 0,
|
||||||
quantity: 0
|
quantity: 0,
|
||||||
|
config: {
|
||||||
|
description: ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.productDialog.showDialog = true
|
this.productDialog.showDialog = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue