This commit is contained in:
caishi 2020-12-23 17:39:50 +08:00
parent d7e0d5b246
commit d66b0580b7
6 changed files with 5 additions and 14 deletions

View File

@ -141,7 +141,6 @@ module.exports = {
name: "static/media/[name].[hash:8].[ext]", name: "static/media/[name].[hash:8].[ext]",
}, },
}, },
// Process JS with Babel.
{ {
test: /\.(js|jsx|mjs)$/, test: /\.(js|jsx|mjs)$/,
include: paths.appSrc, include: paths.appSrc,
@ -161,10 +160,8 @@ module.exports = {
], ],
}, },
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: [ use: [
{ {
loader: MiniCssExtractPlugin.loader, loader: MiniCssExtractPlugin.loader,

View File

@ -1,5 +1,5 @@
{ {
"name": "educoder", "name": "forge",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@ -76,10 +76,4 @@ export { default as AliyunUploader } from './components/media/AliyunUploader'
export { default as ImageLayer2 } from './hooks/ImageLayer2' export { default as ImageLayer2 } from './hooks/ImageLayer2'
// 外部 // 外部
export { default as CBreadcrumb } from '../modules/courses/common/CBreadcrumb'
export { CNotificationHOC as CNotificationHOC } from '../modules/courses/common/CNotificationHOC' export { CNotificationHOC as CNotificationHOC } from '../modules/courses/common/CNotificationHOC'
export { default as ModalWrapper } from '../modules/courses/common/ModalWrapper'
export { default as NoneData } from '../modules/courses/coursesPublic/NoneData'
export { default as WordNumberTextarea } from '../modules/modals/WordNumberTextarea'

View File

@ -116,7 +116,7 @@ function Index(props){
: :
<div style={{padding:"20px 0px"}}> <div style={{padding:"20px 0px"}}>
{content ? {content ?
<RenderHtml className="break_word_comments imageLayerParent" value={content} url={this.props.history.location}/> <RenderHtml className="break_word_comments imageLayerParent" value={content} url={props.history.location}/>
: :
<div>暂无简介~</div> <div>暂无简介~</div>
} }

View File

@ -245,10 +245,10 @@ class Index extends Component {
pagination=(total,limit,page)=>{ pagination=(total,limit,page)=>{
return( return(
total && total > limit && total && total > limit ?
<div className="edu-txt-center pt30 mb30 border-top-grey"> <div className="edu-txt-center pt30 mb30 border-top-grey">
<Pagination simple defaultCurrent={page} total={total} pageSize={limit} onChange={this.ChangePage}></Pagination> <Pagination simple defaultCurrent={page} total={total} pageSize={limit} onChange={this.ChangePage}></Pagination>
</div> </div>:""
) )
} }

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Tooltip } from 'antd'; import { Tooltip } from 'antd';
import { getImageUrl , getImage } from 'educoder'; import { getImageUrl } from 'educoder';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import '../css/index.scss'; import '../css/index.scss';
import Nodata from '../Nodata'; import Nodata from '../Nodata';