跳至主要內容

elementUI在JS里弹窗

牧歌...小于 1 分钟

elementUI在JS里弹窗

JS弹框

import { MessageBox } from 'element-ui'


MessageBox.confirm('请选择登录的平台', {  
  showCancelButton: true,  
  confirmButtonText: '监管货主',  
  cancelButtonText: '后台管理',  
}).then(() => {  
  window.location.href = import.meta.env.VITE_CangUrl+'/login'  
}).catch(() => {  
  window.location.href = import.meta.env.VITE_PtdCloudUrl+'/login'  
});

弹消息

import { Message,MessageBox } from 'element-ui'

Message({  
  message: message,  
  type: 'info'  
});
上次编辑于:
贡献者: Owen
评论
  • 按正序
  • 按倒序
  • 按热度