From ccb23a9dfe6bee8760093cfe1fe5391498875c6f Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 22 Aug 2025 17:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0=E7=94=9F?= =?UTF-8?q?=E5=91=BD=E5=91=A8=E6=9C=9F=E6=9E=84=E5=AD=90onShow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/index/index.vue b/pages/index/index.vue index ceb196d..4535096 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -104,6 +104,12 @@ export default { this.fetchDeviceList() }, + onShow() { + this.fetchAnnouncement() + this.fetchBannerList() + this.fetchDeviceList() + }, + methods: { // 获取最新公告 async fetchAnnouncement() {