fix: 修复查询当前用户传入userid的缺陷
This commit is contained in:
parent
e571533c67
commit
23e323144d
|
@ -142,9 +142,9 @@ public class UserController {
|
|||
return SessionUtils.getUser();
|
||||
}
|
||||
|
||||
@GetMapping("/info/{userId}")
|
||||
public UserDTO getUserInfo(@PathVariable(value = "userId") String userId) {
|
||||
return userService.getUserInfo(userId);
|
||||
@GetMapping("/info")
|
||||
public UserDTO getUserInfo() {
|
||||
return userService.getUserInfo(SessionUtils.getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
});
|
||||
},
|
||||
initTableData() {
|
||||
this.result = this.$get("/user/info/" + encodeURIComponent(this.currentUser().id), response => {
|
||||
this.result = this.$get("/user/info", response => {
|
||||
let data = response.data;
|
||||
this.isLocalUser = response.data.source === 'LOCAL';
|
||||
let dataList = [];
|
||||
|
|
|
@ -273,7 +273,7 @@ export default {
|
|||
});
|
||||
},
|
||||
initTableData() {
|
||||
this.result = this.$get("/user/info/" + encodeURIComponent(this.currentUser().id), response => {
|
||||
this.result = this.$get("/user/info", response => {
|
||||
let data = response.data;
|
||||
this.isLocalUser = response.data.source === 'LOCAL';
|
||||
let dataList = [];
|
||||
|
|
|
@ -54,8 +54,7 @@ export default {
|
|||
this.$emit("confirm");
|
||||
},
|
||||
async getUserSeleniumServer() {
|
||||
let userId = getCurrentUserId();
|
||||
let res = await this.$get(`/user/info/${userId}`);
|
||||
let res = await this.$get(`/user/info`);
|
||||
if (res.data) {
|
||||
this.seleniumServer = res.data.data.seleniumServer || "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue