优化首页组件代码及调试信息
This commit is contained in:
@ -44,7 +44,6 @@
|
||||
}
|
||||
|
||||
const { data: noticeList } = await getNoticeList()
|
||||
console.log(noticeList)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -44,8 +44,6 @@
|
||||
const sideMenu = ref()
|
||||
const menuItemRefs = ref<HTMLElement[]>([])
|
||||
|
||||
// const menuItems = ref<ProjectDictNodeVO[]>([]);
|
||||
|
||||
// 等待数据加载完成再进行渲染 :courseData 对data进行别名赋值
|
||||
const {
|
||||
data: menuItems,
|
||||
@ -64,9 +62,6 @@
|
||||
})
|
||||
|
||||
const showSubMenu = (index: number) => {
|
||||
// if (menuItems.value.length === index + 1) {
|
||||
// return
|
||||
// }
|
||||
activeIndex.value = index
|
||||
const dom = menuItemRefs.value[index].getBoundingClientRect()
|
||||
console.log(dom)
|
||||
@ -78,21 +73,6 @@
|
||||
}
|
||||
|
||||
const handleSubmenuClick = (primary: ProjectDictNodeVO) => {
|
||||
// const normal = { id: "0", name: "图纸库", isChildren: false };
|
||||
// const level = [primary, secondary, tertiary]
|
||||
// .filter(Boolean)
|
||||
// .map((item) => ({
|
||||
// id: item?.id,
|
||||
// name: item?.name,
|
||||
// isChildren: item?.children?.length ? false : true,
|
||||
// }));
|
||||
// if (primary?.id === "0") {
|
||||
// level[0].name = "图纸库";
|
||||
// } else {
|
||||
// level.unshift(normal);
|
||||
// }
|
||||
|
||||
// navigateTo(`/drawe?level=${JSON.stringify(level)}`)
|
||||
navigateTo(`/drawe/${primary.id}/1/12/-1`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user