fix: avatar

This commit is contained in:
zzc
2026-01-25 22:49:50 +08:00
parent ed6c457d91
commit 779a356c0b
4 changed files with 28 additions and 3 deletions

16
.hbuilderx/launch.json Normal file
View File

@@ -0,0 +1,16 @@
{ // launch.json 配置了启动调试时相关设置configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}

View File

@@ -1,5 +1,13 @@
import { request } from "@/utils/request.js";
export const getAvatarSystemList = async (page = 1) => {
return request({
url: `/api/blessing/avatar/system/list?page=${page}`,
method: "GET",
});
};
export const avatarDownloadRecord = async (data) => {
return request({
url: "/api/blessing/avatar/download",

View File

@@ -123,7 +123,7 @@ import {
getShareReward,
abilityCheck,
} from "@/api/system.js";
import { avatarDownloadRecord } from "@/api/avatar.js";
import { avatarDownloadRecord, getAvatarSystemList } from "@/api/avatar.js";
const userStore = useUserStore();
const loginPopupRef = ref(null);

View File

@@ -1,6 +1,7 @@
// const BASE_URL = 'https://apis.lihailezzc.com'
// const BASE_URL = 'http://127.0.0.1:3999'
const BASE_URL = "http://192.168.1.3:3999";
const BASE_URL = 'http://127.0.0.1:3999'
// const BASE_URL = "http://192.168.1.3:3999";
// const BASE_URL = "http://192.168.31.253:3999";
import { useUserStore } from "@/stores/user";
// 环境区分