diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index f8dd25732..a92a2d687 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -1,3 +1,5 @@ + + import React, { Component } from 'react'; import { Link } from "react-router-dom"; import AccountProfile from "../user/AccountProfile"; @@ -13,18 +15,24 @@ import Addcourses from '../courses/coursesPublic/Addcourses'; import LoginDialog from '../login/LoginDialog'; -import GotoQQgroup from '../../modal/GotoQQgroup' +import GotoQQgroup from '../../modal/GotoQQgroup' import './TPMIndex.css'; const $ = window.$ +// TODO 这部分脚本从公共脚本中直接调用 const RadioGroup = Radio.Group; const { Search } = Input; +let old_url; +/* + _logined_header.html.erb + _unlogin_header.html.erb +*/ window._header_componentHandler = null; class NewHeader extends Component { constructor(props) { @@ -279,6 +287,7 @@ class NewHeader extends Component { this.setState({ isRender: true }) + } educoderloginysl = () => { var url = `/accounts/logout.json`; @@ -577,13 +586,6 @@ class NewHeader extends Component { document.head.appendChild(link); } - getAppdata = () => { - try { - var chromesettingArray = JSON.parse(localStorage.getItem('chromesetting')); - var chromesettingresponseArray = JSON.parse(localStorage.getItem('chromesettingresponse')); - // console.log("NewHeaderNewHeaderNewHeader"); - // console.log(chromesettingArray); - // console.log(chromesettingresponseArray); handleVisibleChanges = (boll) => { this.setState({ @@ -1143,10 +1145,10 @@ class NewHeader extends Component {