From b1e49aba9f809b5c60aa417b08e83bc05a2f8dbe Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 21 Jul 2025 09:21:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=AF=BE=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E8=BF=94=E5=9B=9E=E6=8E=A5=E5=8F=A3=E6=9C=AA=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 92b24b85..1fbf94f6 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -126,7 +126,8 @@ import { queryCrsInfoByPopularApi, queryCrsInfoByRecmdApi } from "@/api/course.js" -import { onMounted, ref, computed } from 'vue' +import { onMounted, onActivated, ref, computed } from 'vue' +import { onShow } from "@dcloudio/uni-app" const customStyle = { backgroundColor: "#ffffff", paddingLeft: "40rpx", @@ -288,6 +289,9 @@ import { onMounted, ref, computed } from 'vue' }) changeTab({name:'全部'}) }) + onActivated(() => { + changeTab({name:activeTab.value || '全部'}) + });