🎉 initial commit

This commit is contained in:
2025-09-15 23:55:27 +08:00
commit ea42900d01
82 changed files with 21972 additions and 0 deletions

26
src/mocks/common.mock.ts Normal file
View File

@@ -0,0 +1,26 @@
import { defineMock } from '@alova/mock';
// 通用接口的mock数据
export default defineMock({
// 上传轮播图图片
'[POST]/admin/upload/banner': () => {
return {
code: 200,
message: 'success',
data: {
url: `https://picsum.photos/800/400?random=${Date.now()}`
}
};
},
// 文件上传通用接口
'[POST]/admin/upload/file': () => {
return {
code: 200,
message: 'success',
data: {
url: `https://picsum.photos/400/300?random=${Date.now()}`
}
};
}
}, true);