课程信息组织名称

This commit is contained in:
U-BOE\ZXYJY05
2023-08-08 13:59:24 +08:00
parent b407e514bf
commit 06713a6905
7 changed files with 9 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
import {watch, ref} from "vue";
import {boeRequest} from "@/api/request";
import {boeRequest,request} from "@/api/request";
import {BASE, GET_USER_LIST} from "@/api/ThirdApi";
export function useImage(src) {
@@ -23,8 +23,8 @@ export function delCookie(name){
export function useUserInfo(id) {
const userInfo = ref({})
watch(id, () => {
id.value && boeRequest(GET_USER_LIST, {id: id.value}).then(res => {
userInfo.value = res.result.userInfoList[0]
id.value && request(GET_USER_LIST, {id: id.value}).then(res => {
userInfo.value = res.data
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
})
})