修改意见反馈新建issue仓库和指派成员

This commit is contained in:
谢思 2021-11-17 14:41:17 +08:00
parent 387387108a
commit fc8a476aa3
3 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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",

View File

@ -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;