1.首先在app.vue里面设置white-space属性
.ant-notification{
white-space: pre-wrap!important;
}
2.在提示框加入\n
$notification.info({
duration:null,//自动关闭时间
message: '天气预报',
description:
date+',预计白天到夜间,主城区'+dayweather+',气温'+daytemp+'℃。'+`\n`+
date+',预计白天到夜间,主城区'+dayweather+',气温'+daytemp+'℃。'+`\n`
,
});