|
|
@@ -1,7 +1,6 @@
|
|
|
import { showNotify, NotifyType, showLoadingToast, showToast, showDialog, DialogOptions, ToastType } from 'vant'
|
|
|
import { timerInterceptor } from '@/utils/timer'
|
|
|
import plus from '@/utils/h5plus'
|
|
|
-import { i18n } from '@/stores'
|
|
|
|
|
|
/**
|
|
|
* 消息通知
|
|
|
@@ -61,9 +60,7 @@ export function fullloading(callback: (hideLoading: (msg?: string, type?: ToastT
|
|
|
export function dialog(options: string | DialogOptions) {
|
|
|
if (typeof options === 'string') {
|
|
|
return showDialog({
|
|
|
- message: options,
|
|
|
- cancelButtonText: i18n.global.t('operation.cancel'),
|
|
|
- confirmButtonText: i18n.global.t('operation.confirm')
|
|
|
+ message: options
|
|
|
})
|
|
|
}
|
|
|
return showDialog(options)
|