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:
@@ -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({
|
||||
|
Reference in New Issue
Block a user