perf: 逻辑调整
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="right-wrap">
|
<div class="right-wrap">
|
||||||
<div class="relative mr-12px" @click="sideBarStore.removeTaskUnreadInfo">
|
<div class="relative mr-12px" @click="setUnread">
|
||||||
<SvgIcon
|
<SvgIcon
|
||||||
name="svg-taskCenter"
|
name="svg-taskCenter"
|
||||||
size="16"
|
size="16"
|
||||||
@ -87,7 +87,7 @@ const enterpriseStore = useEnterpriseStore();
|
|||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const sideBarStore = useSidebarStore();
|
const sideBarStore = useSidebarStore();
|
||||||
|
|
||||||
const hasUnreadInfo = computed(() => sideBarStore.unreadInfo.length)
|
const hasUnreadInfo = computed(() => sideBarStore.unreadInfo.length);
|
||||||
|
|
||||||
const exitAccountModalRef = ref(null);
|
const exitAccountModalRef = ref(null);
|
||||||
const downloadCenterModalRef = ref(null);
|
const downloadCenterModalRef = ref(null);
|
||||||
@ -112,6 +112,11 @@ const clickExit = async () => {
|
|||||||
const setServerMenu = () => {
|
const setServerMenu = () => {
|
||||||
router.push('/management/person');
|
router.push('/management/person');
|
||||||
};
|
};
|
||||||
|
const setUnread = () => {
|
||||||
|
if (sideBarStore.unreadInfo.length) {
|
||||||
|
sideBarStore.removeTaskUnreadInfo();
|
||||||
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user