+
-
+
@@ -47,6 +47,16 @@ const toPage = path => {
router.push(path)
}
+const hidePanel = event => {
+ let dom = document.getElementById('content_tab')
+ if (dom) {
+ if (!dom.contains(event.target)) {
+ //这句是说如果我们点击到了id为child以外的区域
+ drawer.value = false
+ }
+ }
+}
+
onMounted(() => {
window.addEventListener('scroll', scrollToTop)
})
@@ -136,6 +146,7 @@ const scrollToTop = () => {
font-family: Alibaba PuHuiTi;
font-weight: 400;
color: #000000;
+ width: 100%;
flex: 1;
display: flex;
align-items: center;