|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
import React, { useState, useEffect } from 'react'; |
|
|
|
import { connect } from 'react-redux'; |
|
|
|
import { Layout, Toast } from '@douyinfe/semi-ui'; |
|
|
|
import { Layout, Notification } from '@douyinfe/semi-ui'; |
|
|
|
import Sider from '../../components/sider'; |
|
|
|
import Header from '../../components/header'; |
|
|
|
import Footer from '../../components/footer'; |
|
|
@ -55,10 +55,18 @@ const LayoutContainer = props => { |
|
|
|
} |
|
|
|
if (msg) { |
|
|
|
if (msg.done) { |
|
|
|
Toast.success(msg.done); |
|
|
|
Notification.success({ |
|
|
|
// title: msg.done, |
|
|
|
content: msg.done, |
|
|
|
duration: 2, |
|
|
|
}) |
|
|
|
} |
|
|
|
if (msg.error) { |
|
|
|
Toast.error(msg.error); |
|
|
|
Notification.error({ |
|
|
|
// title: msg.error, |
|
|
|
content: msg.error, |
|
|
|
duration: 2, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
const dom = document.getElementById('page-content'); |
|
|
|