🐛 nav 菜单切换问题修复
This commit is contained in:
parent
7894d4c3a4
commit
73e6bd325b
@ -184,42 +184,39 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSelectMenu(item) {
|
handleSelectMenu(item) {
|
||||||
let _ts = this;
|
let _ts = this;
|
||||||
let activeMenu = _ts.$store.state.activeMenu;
|
switch (item) {
|
||||||
if (activeMenu !== item) {
|
case 'topic':
|
||||||
switch (item) {
|
_ts.$router.push({
|
||||||
case 'topic':
|
path: '/topic/news?page=1'
|
||||||
_ts.$router.push({
|
})
|
||||||
path: '/topic/news?page=1'
|
break;
|
||||||
})
|
case 'portfolios':
|
||||||
break;
|
_ts.$router.push({
|
||||||
case 'portfolios':
|
path: '/portfolios?page=1'
|
||||||
_ts.$router.push({
|
})
|
||||||
path: '/portfolios?page=1'
|
break;
|
||||||
})
|
case 'products':
|
||||||
break;
|
_ts.$router.push({
|
||||||
case 'products':
|
path: '/products?page=1'
|
||||||
_ts.$router.push({
|
})
|
||||||
path: '/products?page=1'
|
break;
|
||||||
})
|
case 'github':
|
||||||
break;
|
window.open("https://github.com/rymcu");
|
||||||
case 'github':
|
break;
|
||||||
window.open("https://github.com/rymcu");
|
case 'taobao':
|
||||||
break;
|
window.open("https://rymcu.taobao.com?utm_source=rymcu.com");
|
||||||
case 'taobao':
|
break;
|
||||||
window.open("https://rymcu.taobao.com?utm_source=rymcu.com");
|
case 'open-data':
|
||||||
break;
|
_ts.$router.push({
|
||||||
case 'open-data':
|
path: '/open-data'
|
||||||
_ts.$router.push({
|
})
|
||||||
path: '/open-data'
|
break;
|
||||||
})
|
default:
|
||||||
break;
|
_ts.$router.push(
|
||||||
default:
|
{
|
||||||
_ts.$router.push(
|
path: '/'
|
||||||
{
|
}
|
||||||
path: '/'
|
)
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleCommand(item) {
|
handleCommand(item) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user