上传头像base64

This commit is contained in:
kron
2025-06-27 10:33:53 +08:00
parent 6a3fb2af6d
commit a229b18b31
2 changed files with 6 additions and 3 deletions

View File

@@ -50,12 +50,12 @@ export const getProvinceData = () => {
return request("GET", "/index/provinces/list");
};
export const loginAPI = async (nickName, avatarUrl, code) => {
export const loginAPI = async (nickName, avatarData, code) => {
const result = await request("POST", "/index/code", {
appName: "shoot",
appId: "wxa8f5989dcd45cc23",
nickName,
avatarUrl,
avatarData,
code,
});
uni.setStorageSync("token", result.token);