feat(notice): 新增公告优先级和未读状态功能,优化公告展示逻辑
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user