From be4e2d7c2b330c3b8991a0286ea16cc1285b9ec0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 08 May 2026 17:47:32 +0800
Subject: [PATCH] feat: 微信小程序支持上传头像

---
 src/api/common/index.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/api/common/index.js b/src/api/common/index.js
index 1ccc8b8..52d1afc 100644
--- a/src/api/common/index.js
+++ b/src/api/common/index.js
@@ -1,8 +1,8 @@
-import { post, upload } from "@/utils/request"
+import { post, upload } from '@/utils/request'
 
 // 文件上传
 export const uploadFile = filePath =>
-  upload("/common/upload", { filePath, name: "file" })
+  upload('/common/upload', { filePath, name: 'file' })
 
 // 发送验证码
-export const sendCode = data => post("/sendCode", { data })
+export const sendCode = data => post('/sendCode', { data })

--
Gitblit v1.9.3