Browse Source

feat:优化提示语

dev
zhaobing’ 1 year ago
parent
commit
13d2ee1cb6
  1. 9
      web/client/src/sections/service/components/addFirmwareModal.jsx

9
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,7 +62,7 @@ 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({
Notification.success({ title: recordRow?'编辑固件包':'新增固件包',
content: recordRow?'编辑成功':'新增成功',
duration: 3,
})
@ -70,7 +70,10 @@ const AddFirmwareModal = (props) => {
onCancel()
}else{
console.error('Superagent request failed:');
Notification.error({ title: recordRow?'编辑固件包':'新增固件包',
content: recordRow?'编辑失败':'新增失败',
duration: 3,
})
}
})

Loading…
Cancel
Save