forked from Gitlink/forgeplus-react
修改意见反馈新建issue仓库和指派成员
This commit is contained in:
parent
387387108a
commit
fc8a476aa3
|
@ -46,7 +46,7 @@ function SiderBar() {
|
||||||
let url = `/users/get_user_info.json`;
|
let url = `/users/get_user_info.json`;
|
||||||
axios.get(url).then((response) => {
|
axios.get(url).then((response) => {
|
||||||
if (response && response.data && response.data.login) {
|
if (response && response.data && response.data.login) {
|
||||||
setLogin(true);
|
setLogin(response.data.login);
|
||||||
}
|
}
|
||||||
}).catch(error=>{})
|
}).catch(error=>{})
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ function SiderBar() {
|
||||||
{/* 平台反馈 */}
|
{/* 平台反馈 */}
|
||||||
<Tooltip title="意见反馈" placement={"left"} overlayClassName="tooltipBox">
|
<Tooltip title="意见反馈" placement={"left"} overlayClassName="tooltipBox">
|
||||||
<div className="consult">
|
<div className="consult">
|
||||||
<a href={login ? `/jasder/forgeplus/issues/new?type=feedback`:`/login?go_page=/jasder/forgeplus/issues/new`}>
|
<a href={login ? `/${login}/Gitlink/issues/new?type=feedback`:`/login?go_page=/Gitlink/issues/new`}>
|
||||||
<i className="iconfont icon-yijianfankui2"></i>
|
<i className="iconfont icon-yijianfankui2"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -103,7 +103,7 @@ class order_form extends Component {
|
||||||
let data ={
|
let data ={
|
||||||
//指派给段甲生,类型:缺陷,优先度:正常,issue状态:新增
|
//指派给段甲生,类型:缺陷,优先度:正常,issue状态:新增
|
||||||
tracker_id: "1",
|
tracker_id: "1",
|
||||||
assigned_to_id: "36480",
|
assigned_to_id: "105",
|
||||||
priority_id: "2",
|
priority_id: "2",
|
||||||
status_id: "1",
|
status_id: "1",
|
||||||
description:"####问题描述\n\n\n####重现问题步骤\n\n\n####截图\n\n\n####建议解决办法\n",
|
description:"####问题描述\n\n\n####重现问题步骤\n\n\n####截图\n\n\n####建议解决办法\n",
|
||||||
|
|
|
@ -37,7 +37,8 @@ function Login(props){
|
||||||
if(search){
|
if(search){
|
||||||
const searchParams = new URLSearchParams(search.substring(1));
|
const searchParams = new URLSearchParams(search.substring(1));
|
||||||
const goPage = searchParams.get("go_page");
|
const goPage = searchParams.get("go_page");
|
||||||
goPage && (window.location.href = goPage+'?type=feedback');
|
//意见反馈
|
||||||
|
goPage && (window.location.href = `/${response.data.login}${goPage}?type=feedback`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.location.href = "/"+response.data.login;
|
window.location.href = "/"+response.data.login;
|
||||||
|
|
Loading…
Reference in New Issue