fix: avatar
This commit is contained in:
16
.hbuilderx/launch.json
Normal file
16
.hbuilderx/launch.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
// 环境区分
|
||||
|
||||
Reference in New Issue
Block a user