Pages Membership
This commit is contained in:
parent
72a747e66e
commit
2bd704a57a
|
@ -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;
|
||||
|
|
|
@ -74,7 +74,7 @@ export class Product {
|
|||
await this.getData();
|
||||
return response;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
17
tes.http
17
tes.http
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user