You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
518 B
27 lines
518 B
import { ElMessageBox } from 'element-plus'
|
|
|
|
export const FtMessageBox = {
|
|
error: (message: string) => {
|
|
ElMessageBox.confirm(
|
|
message,
|
|
'错误提示',
|
|
{
|
|
showCancelButton: false,
|
|
confirmButtonText: '确认',
|
|
type: 'error',
|
|
},
|
|
)
|
|
},
|
|
|
|
warning: (message: string) => {
|
|
return ElMessageBox.confirm(
|
|
message,
|
|
'提示',
|
|
{
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确认',
|
|
type: 'warning',
|
|
},
|
|
)
|
|
},
|
|
}
|