I encountered the following error in the uniapp project:
analyze:
The parameter title of showToast should be a string, but no value was found.
solve:
- First find the showToast in the page and know that the parameter title is the data returned by the backend (as shown below)
uni.showToast({
icon: 'none',
title: res.data.msg,
mask: true,
duration: 2000
})
- Then check the data returned by the backend and find that there is no msg field, but message. Just modify it.