|
@@ -159,7 +159,18 @@ const topMenuChange = (data) => {
|
|
|
//菜单被点击
|
|
|
const menuBarChange = ({ code }) => {
|
|
|
menuBarKey.value = code
|
|
|
- router.push({ name: code })
|
|
|
+ if (code === 'statistics-datav') {
|
|
|
+ // 如果跳转到数据看板,记录当前路由作为来源路径
|
|
|
+ const currentRoute = router.currentRoute.value
|
|
|
+ router.push({
|
|
|
+ name: code,
|
|
|
+ query: {
|
|
|
+ from: currentRoute.fullPath,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ router.push({ name: code })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//消息数量
|