|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
<ImageCropper
|
|
|
|
|
label="manager image"
|
|
|
|
|
:url.sync="form.thumbnail"
|
|
|
|
|
v-model="fileForm.media"
|
|
|
|
|
v-model="fileForm"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -240,6 +240,7 @@ export default {
|
|
|
|
|
fileForm: {
|
|
|
|
|
batch_id: RANDOM_TOKEN,
|
|
|
|
|
collection: "thumbnail",
|
|
|
|
|
crop_data: {},
|
|
|
|
|
},
|
|
|
|
|
noResultsText: "No results found.",
|
|
|
|
|
noChildrenText: "It does not have a subset",
|
|
|
|
@ -278,7 +279,7 @@ export default {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let repository = new FileRepository();
|
|
|
|
|
if (this.productId) {
|
|
|
|
|
if (this.fileForm.media.file) {
|
|
|
|
|
if (this.fileForm.file) {
|
|
|
|
|
await repository.store(this.fileForm);
|
|
|
|
|
}
|
|
|
|
|
await this.updateProduct(this.form);
|
|
|
|
@ -298,6 +299,7 @@ export default {
|
|
|
|
|
async load() {
|
|
|
|
|
await this.loadProduct(this.productId);
|
|
|
|
|
this.form = this.getProduct;
|
|
|
|
|
this.form["batch_id"] = RANDOM_TOKEN;
|
|
|
|
|
// this.changeProductCategories();
|
|
|
|
|
},
|
|
|
|
|
removeTags(item) {
|
|
|
|
|