Fix: Issues

This commit is contained in:
sylor_huang@126.com 2020-08-20 11:57:36 +08:00
parent 3b0c708d82
commit e0e6cdcc79
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class m_editor extends Component {
height="600px"
language={language ? language : "plaintext"}
theme={"vs-grey"}
defaultValue="请输入内容"
defaultValue=""
value={editorValue}
options={editor_options}
onChange={this.changeEditor}

View File

@ -141,7 +141,7 @@ class Infos extends Component {
<Button
block
className="text-button-grey"
href={`${document.domain}/accounts/${user.login}`}
href={`${window.location.protocol}://${document.domain}/accounts/${user.login}`}
target="_blank"
>
{" "}
@ -164,7 +164,7 @@ class Infos extends Component {
</div>
<div className="width100 inline-block mt20">
<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" : ""}`}
onClick={() =>this.route_link("watchers")}
>
@ -172,7 +172,7 @@ class Infos extends Component {
<span>{user && user.watching_count}</span>
</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")}
className={`with50 text-center pull-left ${route_type === "fan_users" ? "text-primary" : ""}`}
>