|
|
@@ -31,8 +31,7 @@ class Header extends React.Component {
|
|
|
this.setState({
|
|
|
visibleConfirm: false
|
|
|
});
|
|
|
- updateThumbnail()// 添加更新thumbnail
|
|
|
- dispatch({ type: 'dashboard/remoteModify' });
|
|
|
+ dispatch({ type: 'dashboardDesigner/saveWithThumbnail' });
|
|
|
dispatch({ type: 'main/redirect', path: '/dashboard' });
|
|
|
}}
|
|
|
onCancel={() => {
|
|
|
@@ -55,15 +54,11 @@ class Header extends React.Component {
|
|
|
</Popconfirm>
|
|
|
<Button onClick={() => {
|
|
|
if(dashboardDesigner.code && dashboardDesigner.code !== -1) {
|
|
|
- updateThumbnail()// 添加更新thumbnail
|
|
|
- dispatch({ type: 'dashboard/remoteModify' });
|
|
|
+ dispatch({ type: 'dashboardDesigner/saveWithThumbnail' });
|
|
|
}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
|