|
|
@@ -16,7 +16,7 @@ class Header extends React.Component {
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const { dashboardDesigner, dispatch } = this.props;
|
|
|
+ const { dashboardDesigner, dispatch, updateThumbnail } = this.props;
|
|
|
return (
|
|
|
<div className='dashboarddesigner-header'>
|
|
|
<div className='header-item toolbar-back'>
|
|
|
@@ -29,6 +29,7 @@ class Header extends React.Component {
|
|
|
this.setState({
|
|
|
visibleConfirm: false
|
|
|
});
|
|
|
+ updateThumbnail()// 添加更新thumbnail
|
|
|
dispatch({ type: 'dashboard/remoteModify' });
|
|
|
dispatch({ type: 'main/redirect', path: '/dashboard' });
|
|
|
}}
|
|
|
@@ -52,11 +53,15 @@ class Header extends React.Component {
|
|
|
</Popconfirm>
|
|
|
<Button onClick={() => {
|
|
|
if(dashboardDesigner.code && dashboardDesigner.code !== -1) {
|
|
|
+ updateThumbnail()// 添加更新thumbnail
|
|
|
dispatch({ type: 'dashboard/remoteModify' });
|
|
|
}else {
|
|
|
+ updateThumbnail()// 添加更新thumbnail
|
|
|
dispatch({ type: 'dashboard/remoteAdd' });
|
|
|
}
|
|
|
}}><Icon type='save' />保存</Button>
|
|
|
+ <Button onClick={updateThumbnail}
|
|
|
+ ><Icon type='save' />保存Thumbnail(Debug用)</Button>
|
|
|
</div>
|
|
|
<div className='header-item toolbar-title'>
|
|
|
<Input
|