fix: 消息提示0时常驻
This commit is contained in:
@@ -289,7 +289,7 @@ function fnFileModalOk() {
|
||||
}
|
||||
// 发送请求
|
||||
fileModalState.confirmLoading = true;
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
fnType
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
@@ -497,7 +497,7 @@ function fnModalOk() {
|
||||
formData.append('comment', from.comment);
|
||||
formData.append('file', from.file);
|
||||
formData.append('cms', from.cms);
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
uploadNeSoftware(formData)
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
@@ -602,7 +602,7 @@ function fnBackModalOk() {
|
||||
const from = toRaw(fileModalState.backFrom);
|
||||
// 发送请求
|
||||
fileModalState.confirmLoading = true;
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
backNeSoftware(from)
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user