mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
0a41b92eb0
commit
0f149ba158
@ -18,7 +18,8 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="c" v-for="(c, index) in communitys" :key="index">{{ c.name }}</el-dropdown-item>
|
||||
<el-dropdown-item command="moreCommunity" class="moreCommunity">{{ $t('layout.moreCommunity') }}</el-dropdown-item>
|
||||
<el-dropdown-item command="moreCommunity" class="moreCommunity">{{ $t('layout.moreCommunity')
|
||||
}}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<el-dropdown @command="handleCommand">
|
||||
@ -152,17 +153,23 @@ export default {
|
||||
_changeMenuCatalog(_catalog) {
|
||||
this.activeMenu = _catalog.caId;
|
||||
|
||||
// if (_catalog.caId === '1') {
|
||||
// vc.jumpToPage('/#/pages/mall/product');
|
||||
// }
|
||||
// if (vm._showModelDiv(_catalog)) {
|
||||
if (_catalog.caId === '1') {
|
||||
this.$router.push('/#/pages/mall/product');
|
||||
}
|
||||
if (_catalog.url == 'IOT') {
|
||||
this._navJumpToIot();
|
||||
return;
|
||||
}
|
||||
if (_catalog.url == 'MALL') {
|
||||
//获取用户名
|
||||
this.jumpToMall('/');
|
||||
return;
|
||||
}
|
||||
console.log(_catalog)
|
||||
if (_catalog.url != '#') {
|
||||
this._gotoPage(_catalog.url, _catalog.name)
|
||||
//return;
|
||||
// }
|
||||
// if (_catalog.url != '#') {
|
||||
// //vc.jumpToPage(_catalog.url);
|
||||
// window.open(_catalog.url);
|
||||
// //return;
|
||||
// }
|
||||
}
|
||||
this.loadMenuTree(_catalog)
|
||||
},
|
||||
handleCommand(command) {
|
||||
@ -426,6 +433,7 @@ export default {
|
||||
color: #212529;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.vc-menu-main ul li {
|
||||
height: 45px;
|
||||
line-height: 45px;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user