智慧园区前端大屏
shuishen
2024-11-11 9dbaf2dc67febaf4187aeb710c0c038f7c2bf15e
页面跳转方式调整
5 files modified
23 ■■■■■ changed files
src/pages/first/components/mainMenu.vue 4 ●●● patch | view | raw | blame | history
src/pages/layout/index.vue 4 ●●● patch | view | raw | blame | history
src/pages/login.vue 5 ●●●●● patch | view | raw | blame | history
src/views/companyInfo/components/centerContainer.vue 4 ●●● patch | view | raw | blame | history
src/views/survey/components/box/fireTrend.vue 6 ●●●●● patch | view | raw | blame | history
src/pages/first/components/mainMenu.vue
@@ -61,7 +61,9 @@
    } else {
      store.setLoadSingle(false)
    }
    router.push(params.path)
    router.push({
      path: params.path
    })
  } else {
    params.childrenFlag = !params.childrenFlag
  }
src/pages/layout/index.vue
@@ -66,7 +66,9 @@
const signOut = () => {
  loginStore.LogOut().then(res => {
    router.push('/login')
    router.push({
      path: '/login'
    })
  })
}
</script>
src/pages/login.vue
@@ -52,8 +52,9 @@
  })
  store.LoginByUsername(loginForm).then(res => {
    console.log(res, 66666)
    router.push('/layout')
    router.push({
      path: '/layout'
    })
    loading.close()
  }).catch(() => {
    loading.close()
src/views/companyInfo/components/centerContainer.vue
@@ -36,7 +36,9 @@
// 返回首页
const goHome = () => {
  store.setLoadSub(false)
  router.push('/layout')
  router.push({
    path: '/layout'
  })
}
</script>
src/views/survey/components/box/fireTrend.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-13 14:54:26
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-10 19:20:00
 * @LastEditTime: 2024-11-11 19:42:55
 * @FilePath: \bigScreen\src\views\survey\components\box\fireTrend.vue
 * @Description:
 *
@@ -45,7 +45,9 @@
const goSubLayout = (item) => {
  localStorage.setItem('companyInfo', JSON.stringify(item))
  store.setLoadSub(true)
  router.push('/layout/sub/companyInfo')
  router.push({
    path: '/layout/sub/companyInfo'
  })
}
</script>