diff --git a/public/react/src/common/hooks/ImageLayerHook.js b/public/react/src/common/hooks/ImageLayerHook.js index c9f0a14a4..f41cfb0d2 100644 --- a/public/react/src/common/hooks/ImageLayerHook.js +++ b/public/react/src/common/hooks/ImageLayerHook.js @@ -1,6 +1,7 @@ -import React, { useState, useEffect, memo } from 'react' -import ImageLayer from '../../modules/page/layers/ImageLayer' -import { isImageExtension } from 'educoder' +import React, { useState, useEffect, memo } from 'react'; +import ImageLayer from '../../modules/page/layers/ImageLayer'; +import { isImageExtension } from 'educoder'; +const $ = window.$; function ImageLayerHook(props) { const [showImage, setShowImage] = useState(false) const [imageSrc, setImageSrc] = useState('') diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index 0b4044711..03dbdb9e5 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -279,13 +279,13 @@ class LoginRegisterComponent extends Component { }).then((result) => { if(result){ if(result.data.status===-2){ - if(response.data.message==="验证码不正确"){ + if(result.data.message==="验证码不正确"){ this.setState({ Phonenumberisnotcosyzm:"验证码不正确", }) return; - }else if(response.data.message==="验证码已失效"){ + }else if(result.data.message==="验证码已失效"){ this.setState({ Phonenumberisnotcosyzm:"验证码不正确", }) diff --git a/public/react/src/search/SearchPage.js b/public/react/src/search/SearchPage.js index 14966b670..d9b2db7bb 100644 --- a/public/react/src/search/SearchPage.js +++ b/public/react/src/search/SearchPage.js @@ -1,11 +1,13 @@ import React,{ Component } from "react"; import {Checkbox,Input,Table, Pagination,Menu,Icon} from "antd"; +import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC"; import {Link,NavLink} from 'react-router-dom'; import { WordsBtn ,ActionBtn,SnackbarHOC,markdownToHTML,getImageUrl} from 'educoder'; -const Search = Input.Search; import axios from 'axios'; import './searchc.css' -import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC"; +const Search = Input.Search; + + class SearchPage extends Component{ constructor(props) {