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'
});