Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
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
2022-11-21 17:12:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e9eee48721a13b3f887e98849bf0fe0d2358a280
e9eee487
1 parent
4a1513dd
fix 报错提示修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
src/api/fn.js
src/api/fn.js
View file @
e9eee48
/*
* @Date: 2022-05-18 22:56:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-
07-05 23:27:51
* @FilePath: /
tswj
/src/api/fn.js
* @LastEditTime: 2022-
11-21 17:12:28
* @FilePath: /
data-table
/src/api/fn.js
* @Description: 文件描述
*/
import
axios
from
'@/utils/axios'
;
import
{
Toast
}
from
'vant'
;
import
qs
from
'Qs'
import
{
showSuccessToast
,
showFailToast
}
from
'vant'
;
/**
* 网络请求功能函数
...
...
@@ -21,12 +21,8 @@ export const fn = (api) => {
return
res
.
data
||
true
;
}
else
{
// tslint:disable-next-line: no-console
console
.
warn
(
res
);
if
(
!
res
.
data
.
show
)
return
false
;
Toast
({
icon
:
'close'
,
message
:
res
.
data
.
msg
});
// if (!res.data.show) return false;
showFailToast
(
res
.
data
.
msg
);
return
false
;
}
})
...
...
Please
register
or
login
to post a comment