fix: 消息提示0时常驻

This commit is contained in:
TsMask
2024-01-12 15:41:07 +08:00
parent d01b9432da
commit 9ed44a2ac6
14 changed files with 41 additions and 41 deletions

View File

@@ -518,7 +518,7 @@ function fnModalOk() {
const neID = queryParams.neId || '-';
const result = from.id ? updateSub(neID, from) : addSub(neID, from);
const hide = message.loading({ content: t('common.loading') });
const hide = message.loading(t('common.loading'), 0);
result
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -607,7 +607,7 @@ function fnBatchModalOk() {
const neID = queryParams.neId || '-';
from.neID = neID;
const hide = message.loading({ content: t('common.loading') });
const hide = message.loading(t('common.loading'), 0);
batchAddSub(from)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -659,7 +659,7 @@ function fnBatchDelModalOk() {
modalState.confirmLoading = true;
const from = toRaw(modalState.BatchDelForm);
from.neID = queryParams.neId || '-';
const hide = message.loading({ content: t('common.loading') });
const hide = message.loading(t('common.loading'), 0);
batchDelSub(from)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {