From 13d2ee1cb66aebb5784032f71af41bf286af2032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Mon, 9 Oct 2023 14:19:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/components/addFirmwareModal.jsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/client/src/sections/service/components/addFirmwareModal.jsx b/web/client/src/sections/service/components/addFirmwareModal.jsx index 2020944..66ca02d 100644 --- a/web/client/src/sections/service/components/addFirmwareModal.jsx +++ b/web/client/src/sections/service/components/addFirmwareModal.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react' import { connect } from 'react-redux'; import moment from 'moment' import { Button, Table, Modal, Form,Notification,Upload,Toast } from '@douyinfe/semi-ui'; -import { IconUpload } from '@douyinfe/semi-icons'; +import { IconUpload,IconVigoLogo } from '@douyinfe/semi-icons'; import request from 'superagent'; const AddFirmwareModal = (props) => { @@ -62,15 +62,18 @@ const AddFirmwareModal = (props) => { .query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) .end((err, response) => { if(response?.ok){ - Toast.info({ - content: recordRow?'编辑成功':'新增成功', - duration: 3, + Notification.success({ title: recordRow?'编辑固件包':'新增固件包', + content: recordRow?'编辑成功':'新增成功', + duration: 3, }) setRemoveFlag(false) onCancel() }else{ console.error('Superagent request failed:'); - + Notification.error({ title: recordRow?'编辑固件包':'新增固件包', + content: recordRow?'编辑失败':'新增失败', + duration: 3, + }) } })