修改教程
打开modal.js文件,找到Message.success,然后把参数设置进去就行。单位是1000=1秒。
// 可以设置的参数如下
export interface ElMessageOptions {
/** Message text */
message: string | VNode
/** Message type */
type?: MessageType
/** Custom icon's class, overrides type */
iconClass?: string
/** Custom class name for Message */
customClass?: string
/** Display duration, millisecond. If set to 0, it will not turn off automatically */
duration?: number
/** Whether to show a close button */
showClose?: boolean
/** Whether to center the text */
center?: boolean
/** Whether message is treated as HTML string */