1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

12.0 change wiki style (#6152)

* 01 change delete Wiki tip

* 02 remove modify time when wiki init
This commit is contained in:
Michael An
2024-05-31 16:12:53 +08:00
committed by GitHub
parent 7ea5517e40
commit 4b81908955
6 changed files with 40 additions and 127 deletions

View File

@@ -38,8 +38,6 @@ class Wiki extends Component {
seadoc_access_token: '',
assets_url: '',
};
this.pythonWrapper = null;
}
UNSAFE_componentWillMount() {
@@ -123,13 +121,6 @@ class Wiki extends Component {
});
};
removePythonWrapper = () => {
if (this.pythonWrapper) {
document.body.removeChild(this.pythonWrapper);
this.pythonWrapper = null;
}
};
onCloseSide = () => {
this.setState({ closeSideBar: !this.state.closeSideBar });
};
@@ -138,8 +129,6 @@ class Wiki extends Component {
this.setState({
isDataLoading: true,
});
this.removePythonWrapper();
wikiAPI.getWiki2Page(wikiId, pageId).then(res => {
const { permission, seadoc_access_token, assets_url } = res.data;
this.setState({