Commit a8070806 by haojie

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

parent 39e329af
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<template #body> <template #body>
<template v-if="loading"> <template v-if="loading">
<Loading></Loading> <Loading></Loading>
直播正在准备中,请稍后 直播正在加载中,请稍后
</template> </template>
<template v-else> <template v-else>
<div class="title">直播已准备就绪,确定开始直播吗?</div> <div class="title">直播已准备就绪,确定开始直播吗?</div>
......
...@@ -166,7 +166,8 @@ const getList = async () => { ...@@ -166,7 +166,8 @@ const getList = async () => {
if (digitalPeopleList.myList.length > 5) { if (digitalPeopleList.myList.length > 5) {
digitalPeopleList.list = digitalPeopleList.myList.slice(0, 5); digitalPeopleList.list = digitalPeopleList.myList.slice(0, 5);
} else { } else {
digitalPeopleList.list = digitalPeopleList.myList.concat(digitalPeopleList.adminList); // 也要切割成5个
digitalPeopleList.list = digitalPeopleList.myList.concat(digitalPeopleList.adminList).slice(0, 5);
} }
digitalPeopleList.loading = false; digitalPeopleList.loading = false;
} catch (e) { } catch (e) {
......
...@@ -8,7 +8,7 @@ const error_messaage = '请求错误'; ...@@ -8,7 +8,7 @@ const error_messaage = '请求错误';
const getBaseUrl = () => { const getBaseUrl = () => {
if (isDev()) { if (isDev()) {
// //
// return 'http://156.247.11.21:92/'; return 'http://156.247.11.21:92/';
return ''; return '';
} }
// return 'http://video-assistant.test'; // return 'http://video-assistant.test';
...@@ -17,8 +17,8 @@ const getBaseUrl = () => { ...@@ -17,8 +17,8 @@ const getBaseUrl = () => {
const instance = axios.create({ const instance = axios.create({
baseURL: getBaseUrl(), baseURL: getBaseUrl(),
// withCredentials: false, withCredentials: false,
withCredentials: isDev() ? true : 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