你这是element-ui
报的错
源码我看是message
相关的
['success', 'warning', 'info', 'error'].forEach(function (type) {
main_Message[type] = function (options) {
if (typeof options === 'string') {
options = {
message: options
};
}
options.type = type; // 这行报的错
return main_Message(options);
};
});
你找找你哪里调用了这个消息提示,应该是出现了这样的情况
this.$message.success(undefined) // 或者是warning等其他的方法
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…