hookehuyr

fix

......@@ -87,6 +87,7 @@ export default {
created() {
},
mounted() {
// TAG: 视频组件控制
setTimeout(() => {
var mp = new MuiPlayer({
container: '#mui-player-' + this.item.id,
......
......@@ -160,6 +160,7 @@ const onLoad = () => {
.then(res => {
if (res.data.code === 1) {
replyList.value = _.concat(replyList.value, res.data.data.replylist);
replyList.value = _.uniqBy(replyList.value, 'id');
offset.value = replyList.value.length;
loading.value = false;
// 数据全部加载完成
......@@ -232,4 +233,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......
......@@ -60,7 +60,7 @@ const getUserInfo = () => {
const active = ref(0); // index 0 为简介,1 为留言
const onClickTab = ({ title }) => {
console.warn(title);
// console.warn(title);
};
// 监听路由变化
watch(() => $route.path, (v) => {
......@@ -162,4 +162,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......
......@@ -95,6 +95,7 @@ const onLoad = () => {
.then(res => {
if (res.data.code === 1) {
commentList.value = _.concat(commentList.value, res.data.data);
commentList.value = _.uniqBy(commentList.value, 'id');
offset.value = commentList.value.length;
loading.value = false;
// 数据全部加载完成
......@@ -312,4 +313,4 @@ export default {
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.06);
}
}
</style>
\ No newline at end of file
</style>
......
......@@ -77,6 +77,7 @@ let user_info = reactive({
// 保存用户信息
const saveInfo = () => {
// TODO: 需要一个修改儿童信息的接口
let url = $route.query.type === 'Add' ? 'add_performer' : 'add_performer';
axios.post(`/srv/?a=${url}`, {
kg_id: user_info.kg_id,
......@@ -149,4 +150,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......