refactor: migrate demo applications to playground (#4116)
* chore: detail adjustment * refactor: Migrate demo applications to playground * perf: logic optimization * chore: update docs * chore: update docs
This commit is contained in:
1
playground/src/api/demos/index.ts
Normal file
1
playground/src/api/demos/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './status';
|
10
playground/src/api/demos/status.ts
Normal file
10
playground/src/api/demos/status.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 模拟任意状态码
|
||||
*/
|
||||
async function getMockStatusApi(status: string) {
|
||||
return requestClient.get('/status', { params: { status } });
|
||||
}
|
||||
|
||||
export { getMockStatusApi };
|
Reference in New Issue
Block a user