refactor: 修改缓存加载逻辑.

This commit is contained in:
lijiahang
2023-12-04 14:35:18 +08:00
parent a22f30a8b4
commit f4b5ba168a
39 changed files with 278 additions and 332 deletions

View File

@@ -1,6 +1,6 @@
import axios from 'axios';
export type TagType = 'HOST'
export type TagType = 'HOST' | string
/**
* tag 创建对象
@@ -29,5 +29,5 @@ export function createTag(request: TagCreateRequest) {
* 查询标签
*/
export function getTagList(type: TagType) {
return axios.get<TagQueryResponse>('/infra/tag/list', { params: { type } });
return axios.get<Array<TagQueryResponse>>('/infra/tag/list', { params: { type } });
}