The uni-app applet uni.showToast automatically omits the problem of incomplete display if the word count exceeds two lines

As shown in the picture:
insert image description here

uni.showToast({
    
    
	title: res.data.msg,
	icon: "none"
});

uni.showToast() Displays a message prompt box. When an icon is displayed, the title text can display up to 7 Chinese characters in length. If the icon is not displayed, it will not be displayed if it is longer than two lines.

Optionally replaced with uni.showModal

uni.showModal({
    
    
	title: "提示",
	content: res.data.msg,
	confirmText: "确定",
	showCancel: false,
	success: (res) => {
    
    
		
	}
})

insert image description here

Guess you like

Origin blog.csdn.net/maoge_666/article/details/131802277