/* eslint-disable */ import { Modal, message as antdMessage } from 'antd'; import { Modal as mobileModal } from 'antd-mobile'; const { warning } = Modal; const antdMobileAlert = mobileModal.alert; let debounceCount; let secondContent = []; let width; const queryWidth = () => { width = document?.documentElement?.getBoundingClientRect()?.width <= 750 ? '80%' : 500; } const openConfirm = (config) => { queryWidth(); const { message, ...rest } = config; secondContent.push(
{message}
) if (debounceCount) { clearTimeout(debounceCount); }; const fn = () => { if (location.pathname.toLocaleLowerCase().includes('mobile')) { antdMobileAlert('温馨提示', secondContent || '出错了', [ { text: '确认', }, ]) } else { warning({ title: '温馨提示', content: