Commit a8070806 by haojie

修复首页我的数字人超过5个的问题

parent 39e329af
......@@ -11,7 +11,7 @@
<template #body>
<template v-if="loading">
<Loading></Loading>
直播正在准备中,请稍后
直播正在加载中,请稍后
</template>
<template v-else>
<div class="title">直播已准备就绪,确定开始直播吗?</div>
......
......@@ -166,7 +166,8 @@ const getList = async () => {
if (digitalPeopleList.myList.length > 5) {
digitalPeopleList.list = digitalPeopleList.myList.slice(0, 5);
} else {
digitalPeopleList.list = digitalPeopleList.myList.concat(digitalPeopleList.adminList);
// 也要切割成5个
digitalPeopleList.list = digitalPeopleList.myList.concat(digitalPeopleList.adminList).slice(0, 5);
}
digitalPeopleList.loading = false;
} catch (e) {
......
......@@ -8,7 +8,7 @@ const error_messaage = '请求错误';
const getBaseUrl = () => {
if (isDev()) {
//
// return 'http://156.247.11.21:92/';
return 'http://156.247.11.21:92/';
return '';
}
// return 'http://video-assistant.test';
......@@ -17,8 +17,8 @@ const getBaseUrl = () => {
const instance = axios.create({
baseURL: getBaseUrl(),
// withCredentials: false,
withCredentials: isDev() ? true : false,
withCredentials: false,
// withCredentials: isDev() ? true : false,
});
// 请求头
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment