Commit e0790dc5 by zhaochengxiang

授权和发布

parent b68839fe
......@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd';
import LocalStorage from 'local-storage';
import { dispatchLatest } from '../../../../model';
import { showNotifaction } from '../../../../util';
import { showNotifaction, showMessage } from '../../../../util';
const FC = (props) => {
const { visible, onCancel, services } = props;
......@@ -37,13 +37,10 @@ const FC = (props) => {
},
data: services
},
callback: data => {
callback: () => {
reset();
if ((data||'') !== '') {
showNotifaction('授权提示', data, 5);
}
showMessage('success', '授权成功!');
onCancel && onCancel(true);
},
error: () => {
......
......@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd';
import LocalStorage from 'local-storage';
import { dispatchLatest } from '../../../../model';
import { showNotifaction } from '../../../../util';
import { showMessage, showNotifaction } from '../../../../util';
const FC = (props) => {
const { visible, onCancel, ids } = props;
......@@ -37,13 +37,10 @@ const FC = (props) => {
reason: values?.desc
}
},
callback: data => {
callback: () => {
reset();
if ((data||'') !== '') {
showNotifaction('发布提示', data, 5);
}
showMessage('success', '发布成功!')
onCancel && onCancel(true);
},
error: () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment