Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
810f03c4
Commit
810f03c4
authored
Apr 01, 2021
by
zangsuyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:资料云盘类型筛选
parent
7698fcaa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
src/modules/knowledge-base/components/Classification.jsx
+1
-6
src/modules/knowledge-base/components/KnowledgeBaseOpt.jsx
+2
-1
src/modules/knowledge-base/modal/LiveList.jsx
+0
-6
src/modules/knowledge-base/modal/VideoList.jsx
+1
-7
No files found.
src/modules/knowledge-base/components/Classification.jsx
View file @
810f03c4
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-19 18:05:23
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-29 16:33:4
6
* @LastEditTime: 2021-0
4-01 11:59:5
6
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -31,11 +31,6 @@ class Classification extends Component {
componentDidMount
()
{
this
.
queryCategoryTree
();
// this.props.getSelectedCategoryId(
// getParameterByName("categoryId")
// ? [getParameterByName("categoryId")]
// : 0
// );
}
shouldComponentUpdate
=
(
nextProps
,
nextState
)
=>
{
...
...
src/modules/knowledge-base/components/KnowledgeBaseOpt.jsx
View file @
810f03c4
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 14:25:52
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-31 10:23:05
* @LastEditTime: 2021-0
4-01 16:14:29
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -76,6 +76,7 @@ export default function KnowledgeBaseOpt({
isOpen=
{
true
}
accept=
".ppt,.pptx,.doc,.docx,.pdf,.jpg,.jpeg,.png,.xlsx,.xls"
tooltip=
"支持文件类型:ppt、word、excel、pdf、jpg、jpeg、png"
selectTypeList=
{
[
"JPG"
,
"JPEG"
,
"PNG"
,
'DOC'
,
'PDF'
,
'EXCEL'
]
}
// DOC 包含 .ppt,.pptx,.doc,.docx,.xls
onClose=
{
()
=>
{
setModal
(
null
);
}
}
...
...
src/modules/knowledge-base/modal/LiveList.jsx
View file @
810f03c4
...
...
@@ -55,12 +55,6 @@ class LiveList extends React.Component {
};
}
// static getDerivedStateFromProps(props, state) {
// //在getDerivedStateFromProps里不能使用this
// console.log(props);
// return props;
// }
componentDidUpdate
(
prevProps
,
prevState
)
{
//必须写在if里面并且重新进行一次this.props !== prevProps的判断
if
(
...
...
src/modules/knowledge-base/modal/VideoList.jsx
View file @
810f03c4
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-13 11:48:24
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-16 15:35:47
* @LastEditTime: 2021-0
4-01 11:58:46
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -38,12 +38,6 @@ class VideoList extends React.Component {
};
}
// static getDerivedStateFromProps(props, state) {
// //在getDerivedStateFromProps里不能使用this
// console.log(props);
// return props;
// }
componentDidUpdate
(
prevProps
,
prevState
)
{
//必须写在if里面并且重新进行一次this.props !== prevProps的判断
if
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment