forked from Gitlink/forgeplus-react
Fix: Issues
This commit is contained in:
parent
3b0c708d82
commit
e0e6cdcc79
|
@ -49,7 +49,7 @@ class m_editor extends Component {
|
||||||
height="600px"
|
height="600px"
|
||||||
language={language ? language : "plaintext"}
|
language={language ? language : "plaintext"}
|
||||||
theme={"vs-grey"}
|
theme={"vs-grey"}
|
||||||
defaultValue="请输入内容"
|
defaultValue=""
|
||||||
value={editorValue}
|
value={editorValue}
|
||||||
options={editor_options}
|
options={editor_options}
|
||||||
onChange={this.changeEditor}
|
onChange={this.changeEditor}
|
||||||
|
|
|
@ -141,7 +141,7 @@ class Infos extends Component {
|
||||||
<Button
|
<Button
|
||||||
block
|
block
|
||||||
className="text-button-grey"
|
className="text-button-grey"
|
||||||
href={`${document.domain}/accounts/${user.login}`}
|
href={`${window.location.protocol}://${document.domain}/accounts/${user.login}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{" "}
|
{" "}
|
||||||
|
@ -164,7 +164,7 @@ class Infos extends Component {
|
||||||
</div>
|
</div>
|
||||||
<div className="width100 inline-block mt20">
|
<div className="width100 inline-block mt20">
|
||||||
<Link
|
<Link
|
||||||
to={`${document.domain}/users/${user && user.login}/user_watchlist`}
|
to={`${window.location.protocol}://${document.domain}/users/${user && user.login}/user_watchlist`}
|
||||||
className={`with50 text-center pull-left ${route_type === "watchers" ? "text-primary" : ""}`}
|
className={`with50 text-center pull-left ${route_type === "watchers" ? "text-primary" : ""}`}
|
||||||
onClick={() =>this.route_link("watchers")}
|
onClick={() =>this.route_link("watchers")}
|
||||||
>
|
>
|
||||||
|
@ -172,7 +172,7 @@ class Infos extends Component {
|
||||||
<span>{user && user.watching_count}</span>
|
<span>{user && user.watching_count}</span>
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to={`${document.domain}/users/${user && user.login}/user_fanslist`}
|
to={`${window.location.protocol}://${document.domain}/users/${user && user.login}/user_fanslist`}
|
||||||
onClick={() =>this.route_link("fan_users")}
|
onClick={() =>this.route_link("fan_users")}
|
||||||
className={`with50 text-center pull-left ${route_type === "fan_users" ? "text-primary" : ""}`}
|
className={`with50 text-center pull-left ${route_type === "fan_users" ? "text-primary" : ""}`}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue