mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
commit
80fb2e7f87
@ -10,7 +10,7 @@
|
|||||||
<h2 v-show="!collapsed" class="title">HotGo</h2>
|
<h2 v-show="!collapsed" class="title">HotGo</h2>
|
||||||
</div>
|
</div>
|
||||||
<AsideMenu
|
<AsideMenu
|
||||||
v-model:collapsed="collapsed"
|
@update:collapsed="updateMenu"
|
||||||
v-model:location="getMenuLocation"
|
v-model:location="getMenuLocation"
|
||||||
:inverted="getInverted"
|
:inverted="getInverted"
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
@ -216,7 +216,7 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props, { emit }) {
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const notificationStore = notificationStoreWidthOut();
|
const notificationStore = notificationStoreWidthOut();
|
||||||
const useLockscreen = useLockscreenStore();
|
const useLockscreen = useLockscreenStore();
|
||||||
@ -473,6 +473,10 @@
|
|||||||
{ immediate: true, deep: true }
|
{ immediate: true, deep: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const updateMenu = () => {
|
||||||
|
emit('update:collapsed', !props.collapsed);
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (notificationStore.getUnreadCount() === 0) {
|
if (notificationStore.getUnreadCount() === 0) {
|
||||||
notificationStore.pullMessages();
|
notificationStore.pullMessages();
|
||||||
@ -500,6 +504,7 @@
|
|||||||
notificationStore,
|
notificationStore,
|
||||||
getIsMobile,
|
getIsMobile,
|
||||||
userStore,
|
userStore,
|
||||||
|
updateMenu,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -82,6 +82,7 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
pageCount: 1,
|
pageCount: 1,
|
||||||
|
totalCount: 0,
|
||||||
list: [],
|
list: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user