fix: 消息提示0时常驻
This commit is contained in:
@@ -349,7 +349,7 @@ function fnModalOk() {
|
||||
from.neId = queryParams.neId || '-';
|
||||
from.algoIndex = `${from.algoIndex}`;
|
||||
const result = from.id ? updateAuth(from) : addAuth(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) {
|
||||
@@ -390,7 +390,7 @@ function fnBatchModalOk() {
|
||||
from.neID = queryParams.neId || '-';
|
||||
from.algoIndex = `${from.algoIndex}`;
|
||||
const result = batchAuth(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) {
|
||||
@@ -433,7 +433,7 @@ function fnBatchDelModalOk() {
|
||||
// const result = from.id ? updateAuth(from) : addAuth(neID, from);
|
||||
from.neID = neID;
|
||||
const result = batchDelAuth(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) {
|
||||
|
||||
@@ -265,7 +265,7 @@ function fnModalOk() {
|
||||
.validate(validateArr)
|
||||
.then(e => {
|
||||
modalState.confirmLoading = true;
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
|
||||
// 根据类型选择函数
|
||||
let result: any = null;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user