添加 设备登记 页面

This commit is contained in:
GGJ
2024-01-17 14:29:31 +08:00
parent 694b5b181d
commit 0f7722b69e
5 changed files with 460 additions and 28 deletions

View File

@@ -87,7 +87,11 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
response => {
removePending(response.config)
options.loading && closeLoading(options) // 关闭loading
if (response.data.code === 'A0000') {
if (
response.data.code === 'A0000' ||
response.data.type === 'application/json' ||
response.data.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
) {
return options.reductDataFormat ? response.data : response
} else if (response.data.code == 'A0202') {
if (!window.tokenRefreshing) {