feat(notice): 新增公告优先级和未读状态功能,优化公告展示逻辑

This commit is contained in:
2025-12-30 22:49:03 +08:00
parent 76c324b0df
commit 88a4e58130
21 changed files with 1520 additions and 13 deletions

View File

@@ -16,6 +16,8 @@
<app-main />
<settings ref="settingRef" />
</div>
<!-- 公告弹窗组件 -->
<notice-popup ref="noticePopupRef" />
</div>
</template>
@@ -23,6 +25,7 @@
import {useWindowSize} from '@vueuse/core';
import Sidebar from './components/Sidebar/index.vue';
import {AppMain, Settings, TagsView} from './components';
import NoticePopup from '@/components/NoticePopup/index.vue';
import useAppStore from '@/store/modules/app';
import useSettingsStore from '@/store/modules/settings';
@@ -62,9 +65,16 @@ function handleClickOutside() {
}
const settingRef = ref(null);
const noticePopupRef = ref(null);
function setLayout() {
settingRef.value.openSetting();
}
// 暴露公告弹窗引用,供其他组件调用
defineExpose({
noticePopupRef
});
</script>
<style lang="scss" scoped>