mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
课程组织修改
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
export const BASE = window.location.protocol + '//u-pre.boe.com'
|
||||
export const GET_USER_LIST = `/admin/CheckUser/userInfo`
|
||||
export const GET_USER_INFO = `/admin/thirdApi/user/searchList`
|
||||
export const GET_USER_INFO_OLDURL = `/userbasic/user/getUserBaseInfoById`
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {watch, ref} from "vue";
|
||||
import {boeRequest,request} from "@/api/request";
|
||||
import {BASE, GET_USER_LIST} from "@/api/ThirdApi";
|
||||
import {BASE, GET_USER_LIST,GET_USER_INFO_OLDURL} from "@/api/ThirdApi";
|
||||
|
||||
export function useImage(src) {
|
||||
return new URL(`../assets/image/${src}`, import.meta.url).href
|
||||
@@ -23,8 +23,8 @@ export function delCookie(name){
|
||||
export function useUserInfo(id) {
|
||||
const userInfo = ref({})
|
||||
watch(id, () => {
|
||||
id.value && request(GET_USER_LIST, {id: id.value}).then(res => {
|
||||
userInfo.value = res.data
|
||||
id.value && boeRequest(GET_USER_INFO_OLDURL, {userId: id.value}).then(res => {
|
||||
userInfo.value = res.result
|
||||
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
|
||||
})
|
||||
})
|
||||
|
||||
@@ -449,7 +449,7 @@ function toExamItem(obj) {
|
||||
|
||||
.bascinfo {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
height: 80px;
|
||||
border-radius: 8px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
margin-top: 37px;
|
||||
|
||||
@@ -212,7 +212,7 @@ const signClick = () => {
|
||||
|
||||
.bascinfo {
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
height: 80px;
|
||||
border-radius: 8px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
margin-top: 37px;
|
||||
|
||||
Reference in New Issue
Block a user