As shown in the picture:
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) => {
}
})