feat: 调整了登录的逻辑

This commit is contained in:
2026-05-12 21:17:11 +08:00
parent f0b6e86e64
commit 0f6d8f7ff1
7 changed files with 200 additions and 120 deletions

View File

@@ -31,6 +31,7 @@
<script setup>
import { onMounted, ref } from "vue";
import { getTimeNoticeList } from "@/request/api/MainPageDataApi";
import { NOTICE_EVENT_LOGIN_SUCCESS } from "@/constant/constant";
const autoplay = ref(true);
const interval = ref(7000);
@@ -52,6 +53,9 @@ const getTimeNoticeListData = async () => {
onMounted(() => {
getTimeNoticeListData();
uni.$on(NOTICE_EVENT_LOGIN_SUCCESS, () => {
getTimeNoticeListData();
});
});
const clickItem = (item) => {