asd26269546 2 سال پیش
والد
کامیت
ae0342a220
1فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 3
      src/components/headerBar/header-bar.vue

+ 6 - 3
src/components/headerBar/header-bar.vue

@@ -150,8 +150,11 @@ const routerInit = (() => {
 	const arr = []
 	for (let i = 0; i < permissionStore.addRoutes.length; i++) {
 		const element = permissionStore.addRoutes[i];
-		element.isTitle = true
-		arr.push(element)
+		if(element.type === 1) {
+			element.isTitle = true
+			arr.push(element)
+		}
+		
 		if(element.children && element.children.length > 0){
 			for (let j = 0; j < element.children.length; j++) {
 				const jelement = element.children[j];
@@ -214,7 +217,7 @@ function logout() {
 //拼接url跳转
 function routerPush(i) {
 	router.push(i.fatherPath + '/' + i.path)
-	this.isChildMenu = false
+	isChildMenu.value = false
 }
 
 onMounted(()=>{