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(()=>{