From d7b8298e174d39256beb3803d120de191b60621f Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 04 七月 2025 15:32:21 +0800
Subject: [PATCH] 上传调整
---
pages/video/home-page.vue | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/pages/video/home-page.vue b/pages/video/home-page.vue
index b9a7b49..4188a83 100644
--- a/pages/video/home-page.vue
+++ b/pages/video/home-page.vue
@@ -222,22 +222,25 @@
}
},
onShow() {
- this.getAuthorInfo();
- if (this.currentTab === 'works') {
- this.videoQuery.pageNumber = 1
- this.nomoreVideo = false
- this.getAuthorVideoPage();
- } else if (this.currentTab === 'collect') {
- this.collectVideoQuery.pageNumber = 1
- this.nomoreCollectVideo = false
- this.getAuthorCollectVideoPage()
- } else if (this.currentTab === 'likes') {
- this.likeVideoQuery.pageNumber = 1
- this.nomoreLikeVideo = false
- this.getAuthorLikeVideoPage()
+ if (this.authorId) {
+ this.getAuthorInfo();
+ if (this.currentTab === 'works') {
+ this.videoQuery.pageNumber = 1
+ this.nomoreVideo = false
+ this.getAuthorVideoPage();
+ } else if (this.currentTab === 'collect') {
+ this.collectVideoQuery.pageNumber = 1
+ this.nomoreCollectVideo = false
+ this.getAuthorCollectVideoPage()
+ } else if (this.currentTab === 'likes') {
+ this.likeVideoQuery.pageNumber = 1
+ this.nomoreLikeVideo = false
+ this.getAuthorLikeVideoPage()
+ }
}
},
onLoad(option) {
+ console.log("鏀跺埌鍙傛暟", option);
this.authorId = option.authorId;
this.getAuthorInfo();
this.getAuthorVideoPage();
--
Gitblit v1.8.0