mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:09:27 +08:00
===优化
This commit is contained in:
@@ -387,7 +387,7 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
setVideoVisible(false);
|
||||
}}
|
||||
onSelected={(arr: any, videos: any) => {
|
||||
if (chapterType == 0) {
|
||||
if (chapterType === 0) {
|
||||
selectData(arr, videos);
|
||||
} else {
|
||||
selectChapterData(arr, videos);
|
||||
|
||||
@@ -362,14 +362,14 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
<div className="float-left mt-24">
|
||||
<SelectResource
|
||||
defaultKeys={
|
||||
chapterType == 0 ? hours : chapterHours[addvideoCurrent]
|
||||
chapterType === 0 ? hours : chapterHours[addvideoCurrent]
|
||||
}
|
||||
open={videoVisible}
|
||||
onCancel={() => {
|
||||
setVideoVisible(false);
|
||||
}}
|
||||
onSelected={(arr: any, videos: any) => {
|
||||
if (chapterType == 0) {
|
||||
if (chapterType === 0) {
|
||||
selectData(arr, videos);
|
||||
} else {
|
||||
selectChapterData(arr, videos);
|
||||
|
||||
@@ -73,7 +73,7 @@ export const CoursePage = () => {
|
||||
text={"分类"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setCategoryIds(keys);
|
||||
if (typeof title == "string") {
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
} else {
|
||||
setLabel(title.props.children[0]);
|
||||
|
||||
@@ -154,7 +154,7 @@ export const ResourceImagesPage = () => {
|
||||
text={"图片"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setCategoryIds(keys);
|
||||
if (typeof title == "string") {
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
} else {
|
||||
setLabel(title.props.children[0]);
|
||||
|
||||
@@ -169,7 +169,7 @@ export const ResourceVideosPage = () => {
|
||||
text={"视频"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setCategoryIds(keys);
|
||||
if (typeof title == "string") {
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
} else {
|
||||
setLabel(title.props.children[0]);
|
||||
|
||||
Reference in New Issue
Block a user