refactor(api): 优化苹果卡信息批量导入接口
- 移除 getAPIBaseUrl() 方法的调用,直接使用相对 URL - 简化 API 调用路径,提高代码可读性和维护性
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</a-button>
|
||||
<a-upload
|
||||
size="small"
|
||||
:action="`${getAPIBaseUrl()}/api/cardInfo/AppleCard/account/batchAdd`"
|
||||
action="/api/cardInfo/AppleCard/account/batchAdd"
|
||||
:limit="1"
|
||||
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
:headers="{ Authorization: `Bearer ${getToken()}` }"
|
||||
@@ -175,7 +175,6 @@ import {
|
||||
} from '@/api/apple-card-info';
|
||||
import { FileItem, Notification, TableColumnData } from '@arco-design/web-vue';
|
||||
import { getToken, checkTokenFromIframe } from '@/utils/auth';
|
||||
import { getAPIBaseUrl } from '@/api/utils';
|
||||
import AddModal from './components/add-modal.vue';
|
||||
import AccountDetail from './components/detail.vue';
|
||||
import { apiClient } from '@/api';
|
||||
|
||||
Reference in New Issue
Block a user