perf(platform): 创作页加载 - 合并用户数据与余额请求并按路由延迟加载
This commit is contained in:
@@ -12,6 +12,14 @@ export type RemoteUserDataSummary = {
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
export type RemoteUserDataSnapshot = {
|
||||
assets: Asset[];
|
||||
projects: CanvasProject[];
|
||||
};
|
||||
|
||||
export function getRemoteUserDataSnapshot() {
|
||||
return request<RemoteUserDataSnapshot>(api.get("/user-data/snapshot"));
|
||||
}
|
||||
|
||||
export function listRemoteAssets() {
|
||||
return request<{ assets: RemoteUserDataSummary[] }>(api.get("/assets"));
|
||||
|
||||
Reference in New Issue
Block a user