fix(系统设置): 个人信息填写第三方账号信息校验404
--bug=1018837 --user=李玉号 【系统设置】个人信息-第三方账号-填写第三方账号信息-校验报404 https://www.tapd.cn/55049933/s/1276411
This commit is contained in:
parent
3c4350f30a
commit
22bc912a9e
|
@ -30,7 +30,7 @@ export function updatePassword(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function handleAuth(param) {
|
export function handleAuth(param) {
|
||||||
return post('issues/user/auth', param)
|
return post('/personal/relate/issues/user/auth', param);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSystemTheme() {
|
export function getSystemTheme() {
|
||||||
|
|
|
@ -55,7 +55,7 @@ import JiraUserInfo from "./JiraUserInfo";
|
||||||
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
|
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
|
||||||
import {getIntegrationService} from "../../api/workspace";
|
import {getIntegrationService} from "../../api/workspace";
|
||||||
import {useUserStore} from "@/store";
|
import {useUserStore} from "@/store";
|
||||||
import {getUserInfo, getWsAndPj} from "../../api/user";
|
import {handleAuth as _handleAuth,getUserInfo, getWsAndPj} from "../../api/user";
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
|
@ -142,9 +142,9 @@ export default {
|
||||||
}
|
}
|
||||||
param.workspaceId = getCurrentWorkspaceId();
|
param.workspaceId = getCurrentWorkspaceId();
|
||||||
param.platform = type;
|
param.platform = type;
|
||||||
this.$parent.result = this.$post("issues/user/auth", param, () => {
|
this.$parent.result = _handleAuth(param).then(() => {
|
||||||
this.$success(this.$t('organization.integration.verified'));
|
this.$success(this.$t('organization.integration.verified'));
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getPlatformInfo(row) {
|
getPlatformInfo(row) {
|
||||||
let orgId = getCurrentWorkspaceId();
|
let orgId = getCurrentWorkspaceId();
|
||||||
|
|
|
@ -100,7 +100,7 @@ import {getIntegrationService} from "../../api/workspace";
|
||||||
import ZentaoUserInfo from "./ZentaoUserInfo";
|
import ZentaoUserInfo from "./ZentaoUserInfo";
|
||||||
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
|
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
|
||||||
import {useUserStore} from "@/store";
|
import {useUserStore} from "@/store";
|
||||||
import {handleAuth, updateInfo, updatePassword} from "../../api/user";
|
import {handleAuth as _handleAuth, updateInfo, updatePassword} from "../../api/user";
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ export default {
|
||||||
let param = {...this.currentPlatformInfo};
|
let param = {...this.currentPlatformInfo};
|
||||||
param.workspaceId = getCurrentWorkspaceId();
|
param.workspaceId = getCurrentWorkspaceId();
|
||||||
param.platform = type;
|
param.platform = type;
|
||||||
this.$parent.result = handleAuth(param)
|
this.$parent.result = _handleAuth(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$success(this.$t('organization.integration.verified'));
|
this.$success(this.$t('organization.integration.verified'));
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package io.metersphere.controller;
|
||||||
|
|
||||||
|
import io.metersphere.commons.constants.MicroServiceName;
|
||||||
|
import io.metersphere.service.MicroService;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/personal/relate")
|
||||||
|
public class BasePersonalRelateController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private MicroService microService;
|
||||||
|
|
||||||
|
@PostMapping("/issues/user/auth")
|
||||||
|
public void userAuth(@RequestBody Object obj) {
|
||||||
|
microService.postForData(MicroServiceName.TEST_TRACK, "/issues/user/auth", obj);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue