From 5a1fcb14433deb2042a4681b40ef1829f2fb3c86 Mon Sep 17 00:00:00 2001 From: hucong <1422588487@qq.com> Date: Wed, 24 Nov 2021 18:31:46 +0800 Subject: [PATCH] =?UTF-8?q?403,404=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/403/Shixunauthority.js | 21 ++++++++++++++------- src/modules/404/Shixunnopage.js | 11 ++++++++++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/modules/403/Shixunauthority.js b/src/modules/403/Shixunauthority.js index e2c5260d5..435d818b0 100644 --- a/src/modules/403/Shixunauthority.js +++ b/src/modules/403/Shixunauthority.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React, { Component, useReducer } from 'react'; import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; @@ -11,21 +11,29 @@ import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { SnackbarHOC,getImageUrl } from 'educoder'; class Shixunauthority extends Component { + constructor(props) { + super(props); + } render() { + console.log(this.props); + const { current_user } = this.props; return (