Merge pull request #243 from SVDBG/patch-1

我发现在使用权限管理面板时,面板一直停留在加载界面,无法显示数据
This commit is contained in:
Archer
2023-03-06 09:13:19 +08:00
committed by GitHub
3 changed files with 9 additions and 4 deletions

View File

@@ -15,8 +15,11 @@ export const loginOutApi = (): Promise<IResponse> => {
export const getUserListApi = ({ params }: AxiosConfig) => { export const getUserListApi = ({ params }: AxiosConfig) => {
return request.get<{ return request.get<{
total: number code: string
list: UserType[] data: {
list: UserType[]
total: number
}
}>({ url: '/user/list', params }) }>({ url: '/user/list', params })
} }

View File

@@ -65,7 +65,8 @@ const getTableList = async (params?: Params) => {
// loading.value = false // loading.value = false
// }) // })
if (res) { if (res) {
tableDataList.value = res.list tableDataList.value = res.data.list
loading.value = false
} }
} }

View File

@@ -65,7 +65,8 @@ const getTableList = async (params?: Params) => {
// loading.value = false // loading.value = false
// }) // })
if (res) { if (res) {
tableDataList.value = res.list tableDataList.value = res.data.list
loading.value = false
} }
} }