在vite中引用了
import { ElMessageBox } from 'element-plus'
然后使用了代码
const handleClose = (done) => {
ElMessageBox.confirm('确定关闭吗')
.then(() => {
done()
})
.catch(() => {
// catch error
})
}
然后出来是样式丢失了
最后找到问题,删除引用即可,直接使用即可
// import { ElMessageBox } from 'element-plus'