mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-29 15:42:55 +00:00
feat: 更新应用名称和页面路由结构
refactor: 重构用户信息管理和登录流程 fix: 修复头像上传和密码修改功能 style: 优化登录页面和主题设置界面 docs: 更新主题系统文档说明 chore: 移除无用配置文件和更新依赖项
This commit is contained in:
@@ -18,7 +18,7 @@ const FileAPI = {
|
||||
*
|
||||
* @param filePath
|
||||
*/
|
||||
upload(filePath: string): Promise<UploadFilePath> {
|
||||
upload(filePath: string): Promise<UploadFileResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.uploadFile({
|
||||
url: this.uploadUrl,
|
||||
@@ -29,7 +29,7 @@ const FileAPI = {
|
||||
},
|
||||
formData: {},
|
||||
success: (response) => {
|
||||
const resData = JSON.parse(response.data) as ApiResponse<UploadFilePath>;
|
||||
const resData = JSON.parse(response.data) as ApiResponse<UploadFileResult>;
|
||||
// 业务状态码 00000 表示成功
|
||||
if (resData.code === ApiCode.SUCCESS) {
|
||||
resolve(resData.data);
|
||||
|
||||
Reference in New Issue
Block a user