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