diff --git a/src/forge/Main/CoderRootFileDetail.js b/src/forge/Main/CoderRootFileDetail.js
index fd09b335b..2b7eb9aa7 100644
--- a/src/forge/Main/CoderRootFileDetail.js
+++ b/src/forge/Main/CoderRootFileDetail.js
@@ -107,9 +107,6 @@ class CoderRootFileDetail extends Component {
EditFile = (flag) => {
const { onEdit } = this.props;
onEdit && onEdit(flag);
- // this.setState({
- // readOnly: false,
- // });
};
DownLoadFile =(url) => {
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index c837ccb44..c7052fe72 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -378,14 +378,12 @@ class MessageCount extends Component {
-
- {data.issue.description &&
- data.issue.description.length > 0 ? (
- this.commentCtx(data.issue.description)
- ) : (
- 没有描述
- )}
-
+ {
+ data.issue.description ?
+
{pr_status === 2 && (
diff --git a/src/forge/Newfile/m_editor.js b/src/forge/Newfile/m_editor.js
index 806154b0c..a2b4216c9 100644
--- a/src/forge/Newfile/m_editor.js
+++ b/src/forge/Newfile/m_editor.js
@@ -1,6 +1,5 @@
import React, { Component } from "react";
import Editor from "react-monaco-editor";
-
import UserSubmitComponent from "./UserSubmitComponent";
import "./index.css";
@@ -29,6 +28,7 @@ class m_editor extends Component {
lineHeight: 24,
renderLineHighlight: "line",
revealHorizontalRightPadding: 5,
+ placeholder:"请输入内容",
readOnly: readOnly,
cursorStyle: readOnly ? "underline-thin" : "line",
folding: true,
@@ -46,16 +46,17 @@ class m_editor extends Component {
+
{!readOnly && (
{
this.setState({ isSpin: false })
- console.log(error);
})
}else{
this.setState({ isSpin: false })
diff --git a/src/modules/tpm/TPMIndex.css b/src/modules/tpm/TPMIndex.css
index f47632d35..cf3b7ffec 100644
--- a/src/modules/tpm/TPMIndex.css
+++ b/src/modules/tpm/TPMIndex.css
@@ -29,7 +29,7 @@ body>.-task-title {
width: 100%;
height:70px;
min-width: 1200px;
- z-index: 1000;
+ z-index: 10000;
-moz-box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
background:rgba(255,255,255,1);
box-shadow:0px 2px 10px 0px rgba(0,0,0,0.1);
diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js
index a4c47d4f2..0084c3334 100644
--- a/src/modules/tpm/TPMIndexHOC.js
+++ b/src/modules/tpm/TPMIndexHOC.js
@@ -8,7 +8,6 @@ import './TPMIndex.css';
import LoginDialog from '../login/LoginDialog';
import AccountProfile from '../user/AccountProfile';
import AccountPhoneemail from '../user/AccountPhoneemail';
-import cookies from 'react-cookies';
export function TPMIndexHOC(WrappedComponent) {
return class II extends React.Component {
@@ -154,7 +153,7 @@ export function TPMIndexHOC(WrappedComponent) {
this.gettablogourlnull();
});
}
-
+
fetchUsers = () => {
let url = `/users/get_user_info.json`;
axios.get(url).then((response) => {
@@ -163,6 +162,9 @@ export function TPMIndexHOC(WrappedComponent) {
this.setState({
tpmLoading: false
})
+ if (this.props.match.path === "/" && response.data.login) {
+ this.props.history.push(`/users/${response.data.login}`);
+ }
}
}).catch((error) => {
console.log(error)
@@ -184,15 +186,16 @@ export function TPMIndexHOC(WrappedComponent) {
json[key] = value;
}
} while (arr);
-
return json;
};
+
hideLoginDialog = () => {
this.setState({
isRender: false,
isloginCancel: undefined
})
}
+
showLoginDialog = () => {
this.setState({
isRender: true,
@@ -209,6 +212,7 @@ export function TPMIndexHOC(WrappedComponent) {
AccountProfiletype: false
})
}
+
showProfileCompleteDialog = () => {
this.dialogObj = {}
this.setState({
@@ -393,11 +397,15 @@ export function TPMIndexHOC(WrappedComponent) {
tip={this._gLoadingTip || "加载中..."}
>
- this.initCommonState(user)}
- {...this.props} {...this.state}
- {...common}
- >
-
+ {
+ current_user &&
+ this.initCommonState(user)}
+ {...this.props} {...this.state}
+ {...common}
+ >
+
+ }
+