优化提示太短问题

This commit is contained in:
wuxw 2024-07-02 10:38:10 +08:00
parent 8021afa907
commit ed8f6dbeba

View File

@ -386,7 +386,7 @@ export function authOwner(_data) {
wx.showToast({ wx.showToast({
title: msg, title: msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 5000
}); });
return; return;
} }
@ -397,10 +397,10 @@ export function authOwner(_data) {
data: _data, data: _data,
success: function(res) { success: function(res) {
let _json = res.data; let _json = res.data;
wx.showToast({ uni.showToast({
title: _json.msg, title: _json.msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 5000
}); });
if (_json.code != 0) { if (_json.code != 0) {
reject(_json.msg); reject(_json.msg);