Browse Source

统一提示

release_0.0.2
yuan_yi 3 years ago
parent
commit
7801359f73
  1. BIN
      code/VideoAccess-VCMP/web/client/assets/images/logo/figure.png
  2. 14
      code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx

BIN
code/VideoAccess-VCMP/web/client/assets/images/logo/figure.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

14
code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx

@ -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');

Loading…
Cancel
Save