保存快捷键.

This commit is contained in:
lijiahangmax
2024-01-17 00:48:20 +08:00
parent c750ce8ed2
commit 0eed20e54f
11 changed files with 281 additions and 90 deletions

View File

@@ -49,3 +49,18 @@ export function getPreference<T>(type: PreferenceType, items: Array<string> | un
});
}
/**
* 查询默认偏好
*/
export function getDefaultPreference<T>(type: PreferenceType, items: Array<string> | undefined = undefined) {
return axios.get<T>('/infra/preference/get-default', {
params: {
type,
items
},
paramsSerializer: params => {
return qs.stringify(params, { arrayFormat: 'comma' });
}
});
}