dev_forum
杨树明 5 years ago
parent e23f71b36e
commit 1d1fa9752e

@ -1,6 +1,7 @@
import React, { useState, useEffect, memo } from 'react' import React, { useState, useEffect, memo } from 'react';
import ImageLayer from '../../modules/page/layers/ImageLayer' import ImageLayer from '../../modules/page/layers/ImageLayer';
import { isImageExtension } from 'educoder' import { isImageExtension } from 'educoder';
const $ = window.$;
function ImageLayerHook(props) { function ImageLayerHook(props) {
const [showImage, setShowImage] = useState(false) const [showImage, setShowImage] = useState(false)
const [imageSrc, setImageSrc] = useState('') const [imageSrc, setImageSrc] = useState('')

@ -279,13 +279,13 @@ class LoginRegisterComponent extends Component {
}).then((result) => { }).then((result) => {
if(result){ if(result){
if(result.data.status===-2){ if(result.data.status===-2){
if(response.data.message==="验证码不正确"){ if(result.data.message==="验证码不正确"){
this.setState({ this.setState({
Phonenumberisnotcosyzm:"验证码不正确", Phonenumberisnotcosyzm:"验证码不正确",
}) })
return; return;
}else if(response.data.message==="验证码已失效"){ }else if(result.data.message==="验证码已失效"){
this.setState({ this.setState({
Phonenumberisnotcosyzm:"验证码不正确", Phonenumberisnotcosyzm:"验证码不正确",
}) })

@ -1,11 +1,13 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import {Checkbox,Input,Table, Pagination,Menu,Icon} from "antd"; import {Checkbox,Input,Table, Pagination,Menu,Icon} from "antd";
import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC";
import {Link,NavLink} from 'react-router-dom'; import {Link,NavLink} from 'react-router-dom';
import { WordsBtn ,ActionBtn,SnackbarHOC,markdownToHTML,getImageUrl} from 'educoder'; import { WordsBtn ,ActionBtn,SnackbarHOC,markdownToHTML,getImageUrl} from 'educoder';
const Search = Input.Search;
import axios from 'axios'; import axios from 'axios';
import './searchc.css' import './searchc.css'
import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC"; const Search = Input.Search;
class SearchPage extends Component{ class SearchPage extends Component{
constructor(props) { constructor(props) {

Loading…
Cancel
Save