Refresh Page

This commit is contained in:
2021-12-21 19:24:08 +07:00
parent fc6b61e21c
commit 9cefac57ae
9 changed files with 16 additions and 13 deletions

View File

@@ -56,7 +56,7 @@ export class Subcategory {
async create(data) {
try {
const response = await http.post('/product/sub-categories').send(data);
await this.getData();
//await this.getData();
return response;
} catch (e) {
console.error(e);
@@ -66,7 +66,7 @@ export class Subcategory {
async update(id, data) {
try {
const response = await http.put(`/product/sub-categories/${id}`).send(data);
await this.getData();
//await this.getData();
return response;
} catch (e) {
console.error(e);