Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-12 16:42:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
263c1587ba861d8dd6be47816a937e3642d3ebd0
263c1587
1 parent
7d0e210a
fix(api): 将错误提示从showFailToast改为showToast以改善用户体验
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/api/fn.js
src/api/fn.js
View file @
263c158
/*
* @Date: 2022-05-18 22:56:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-11-1
1 13:31:09
* @LastEditTime: 2025-11-1
2 16:42:17
* @FilePath: /stdj_h5/src/api/fn.js
* @Description: 文件描述
*/
import
axios
from
'@/utils/axios'
;
import
{
showFailToast
}
from
'vant'
;
import
{
showFailToast
,
showToast
}
from
'vant'
;
import
qs
from
'Qs'
/**
...
...
@@ -23,7 +23,7 @@ export const fn = (api) => {
// tslint:disable-next-line: no-console
console
.
warn
(
res
);
// if (!res.data.show) return false;
show
Fail
Toast
(
res
.
data
.
msg
);
showToast
(
res
.
data
.
msg
);
return
false
;
}
})
...
...
Please
register
or
login
to post a comment