diff --git a/package.json b/package.json index 7884bf225d..5f8f024184 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "mockjs": "^1.1.0", "nprogress": "^0.2.0", "path": "^0.12.7", - "pinia": "^2.0.23", + "pinia": "^2.0.24", "qrcode": "^1.5.1", "qs": "^6.11.0", "resize-observer-polyfill": "^1.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c885ca702..ac80caca08 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -74,7 +74,7 @@ specifiers: nprogress: ^0.2.0 path: ^0.12.7 picocolors: ^1.0.0 - pinia: ^2.0.23 + pinia: ^2.0.24 postcss: ^8.4.18 postcss-html: ^1.5.0 postcss-import: ^15.0.0 diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 0aee232a1d..1c283e8859 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -5,7 +5,8 @@ import NoticeList from "./noticeList.vue"; import { Tabs, TabPane } from "@pureadmin/components"; const dropdownDom = ref(); -const activeKey = ref(noticesData[2].key); +const activeKey = ref(noticesData[0].key); + const notices = ref(noticesData); const noticesNum = ref(0); @@ -33,7 +34,7 @@ function tabClick() { centered class="dropdown-tabs" :tabBarStyle="{ marginLeft: notices?.length > 4 ? '8px' : '0' }" - v-model="activeKey" + v-model:activeKey="activeKey" @tabClick="tabClick" >