|
|
@@ -67,9 +67,9 @@
|
|
|
@mouseleave="mouseleave(it)" v-if="it.meta.title && it.meta.menuType != 2">
|
|
|
<span :style="'cursor:pointer;' + (menuName && it.meta.title.includes(menuName) ? 'color: orange;':'')"
|
|
|
@click="returnSpecificPage(item,it,false)" class="drawer-meta-title">{{ it.meta.title }}</span>
|
|
|
- <Button size="small" type="primary" v-show="it.meta.hover" @click="returnSpecificPage(item,it,true)">
|
|
|
- <Icon :type="item.icon?item.icon: 'md-add'"/>
|
|
|
- </Button>
|
|
|
+<!-- <Button size="small" type="primary" v-show="it.meta.hover" @click="returnSpecificPage(item,it,true)">-->
|
|
|
+<!-- <Icon :type="item.icon?item.icon: 'md-add'"/>-->
|
|
|
+<!-- </Button>-->
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -317,8 +317,11 @@ export default {
|
|
|
if (val && val.name) {
|
|
|
//有新建
|
|
|
if (val.meta.hover) {
|
|
|
- // 如果
|
|
|
- this.$router.push({name: val.name + (flag ? '-add' : ''),params:{menuClick:true,parentPath:val.path}})
|
|
|
+ // flag=true 是点击按钮
|
|
|
+
|
|
|
+ console.log('flag',flag,val)
|
|
|
+ // this.$router.push({name: val.name + (flag ? '-add' : ''),params:{menuClick:true,parentPath:val.path}})
|
|
|
+ this.$router.push({name: val.name})
|
|
|
} else {
|
|
|
this.$router.push({name: val.name})
|
|
|
// this.$router.push(val.path)
|