1
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import http from "@/libs/http";
|
||||
class UserServer {
|
||||
async login(row) {
|
||||
let res = await http.post("/sys_user/login", row);
|
||||
let res = await window.framework.http.post("/sys_user/login", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async all() {
|
||||
let res = await http.get("/sys_user/index", {});
|
||||
let res = await window.framework.httpget("/sys_user/index", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -16,22 +16,22 @@ class UserServer {
|
||||
}
|
||||
|
||||
async authorityMenus() {
|
||||
let res = await http.post("/sys_user/authorityMenus", {});
|
||||
let res = await window.framework.http.post("/sys_user/authorityMenus", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_user/add", row);
|
||||
let res = await window.framework.http.post("/sys_user/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_user/edit", row);
|
||||
let res = await window.framework.http.post("/sys_user/edit", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_user/del", row);
|
||||
let res = await window.framework.http.post("/sys_user/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user