From 2bd704a57a2fbdb2dfd0e2b27cf8b8523c7eeec8 Mon Sep 17 00:00:00 2001 From: "ajat91.sudrajat" Date: Fri, 17 Dec 2021 16:22:49 +0700 Subject: [PATCH] Pages Membership --- src/store/membership.js | 2 -- src/store/product.js | 2 +- tes.http | 17 ----------------- 3 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 tes.http diff --git a/src/store/membership.js b/src/store/membership.js index 574f504..80046dd 100644 --- a/src/store/membership.js +++ b/src/store/membership.js @@ -15,7 +15,6 @@ export class Membership { async getData() { try { const response = await http.get(`/users?page=${this.page}&pageSize=${this.pageSize}`); - console.log(response,"admin") this.data = response.body.data.map((item, idx) => { item.key = idx; item.name = item?.user_detail?.name; @@ -33,7 +32,6 @@ export class Membership { async getDataBySuperior() { try { const response = await http.get(`/users/find-by-supperior?page=${this.page}&pageSize=${this.pageSize}`); - console.log(response,"non admin") this.data = response.body.data.map((item, idx) => { item.key = idx; item.name = item?.user_detail?.name; diff --git a/src/store/product.js b/src/store/product.js index 694f715..9422e8d 100644 --- a/src/store/product.js +++ b/src/store/product.js @@ -74,7 +74,7 @@ export class Product { await this.getData(); return response; } catch (e) { - console.error(e); + console.error(e) } } diff --git a/tes.http b/tes.http deleted file mode 100644 index 5c8644d..0000000 --- a/tes.http +++ /dev/null @@ -1,17 +0,0 @@ -POST https://ppob-backend.k3s.bangun-kreatif.com/v1/auth/login HTTP/1.1 -content-type: application/json - -{ - "username": "admin", - "password": 123 -} - -### - -POST https://ppob-backend.k3s.bangun-kreatif.com/v1/auth/login HTTP/1.1 -content-type: application/json - -{ - "username": "admin", - "password": 123 -} \ No newline at end of file