修改地址栏 undefined 情况

chromesetting
tangjiang 5 years ago
parent ec4eba76ce
commit 4d81f511ef

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-27 15:02:52 * @Date: 2019-11-27 15:02:52
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-20 19:06:48 * @LastEditTime: 2019-12-20 20:07:11
*/ */
import './index.scss'; import './index.scss';
import React, { useState, useRef, useEffect } from 'react'; import React, { useState, useRef, useEffect } from 'react';
@ -160,7 +160,7 @@ function MyMonacoEditor (props, ref) {
</Tooltip> </Tooltip>
<Tooltip <Tooltip
placement="bottom" placement="bottom"
title="重置" title="恢复"
> >
<MyIcon <MyIcon
className="flex_normal" className="flex_normal"

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-04 08:36:21 * @Date: 2019-12-04 08:36:21
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-20 19:29:39 * @LastEditTime: 2019-12-20 20:05:57
*/ */
import './index.scss'; import './index.scss';
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
@ -67,7 +67,7 @@ function RecordDetail (props) {
<span>{detail.name || 'test'}</span> <span>{detail.name || 'test'}</span>
</div> </div>
<div className={'study_quit'}> <div className={'study_quit'}>
<Button> <Button style={{ visibility: identifier ? 'visible' : 'hidden'}}>
<Link to={`/myproblems/${identifier}`}>返回该题</Link> <Link to={`/myproblems/${identifier}`}>返回该题</Link>
</Button> </Button>
</div> </div>
@ -98,6 +98,7 @@ function RecordDetail (props) {
<div className="detail_ctx_header"> <div className="detail_ctx_header">
<h2 className="header_h2">提交内容</h2> <h2 className="header_h2">提交内容</h2>
<Button <Button
style={{ visibility: identifier ? 'visible' : 'hidden'}}
className={'header_btn'} className={'header_btn'}
type="primary" type="primary"
> >

Loading…
Cancel
Save