角色列表添加
This commit is contained in:
@@ -17,8 +17,7 @@ const loadingInstance: LoadingInstance = {
|
||||
* 根据运行环境获取基础请求URL
|
||||
*/
|
||||
export const getUrl = (): string => {
|
||||
if (import.meta.env.MODE == 'development' || location.hostname === 'localhost') return '/api'
|
||||
return window.location.protocol + '//' + window.location.host
|
||||
return '/api'
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -224,6 +223,7 @@ interface LoadingInstance {
|
||||
target: any
|
||||
count: number
|
||||
}
|
||||
|
||||
interface Options {
|
||||
// 是否开启取消重复请求, 默认为 true
|
||||
CancelDuplicateRequest?: boolean
|
||||
|
||||
Reference in New Issue
Block a user