智慧园区前端大屏
1
shuishen
2024-12-02 1dee40ea46601f2ee5d10aa0190625ebf03bdc4e
src/pages/first/index.vue
@@ -1,9 +1,19 @@
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-11-27 18:00:02
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-29 21:28:06
 * @FilePath: \bigScreen\src\pages\first\index.vue
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
-->
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:24
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-10 20:03:06
 * @FilePath: \bigScreen\src\views\first\index.vue
 * @LastEditTime: 2024-11-27 20:21:08
 * @FilePath: \bigScreen\src\pages\first\index.vue
 * @Description: 
 * 
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. 
@@ -21,7 +31,7 @@
    <div class="main-container">
      <!-- 地图区域 -->
      <router-view key="2"></router-view>
      <router-view></router-view>
    </div>
    <main-menu></main-menu>
@@ -32,6 +42,19 @@
import { getAssetsFile } from 'utils/utils'
const loginOutBg = getAssetsFile('login.png', '/images')
import mainMenu from './components/mainMenu.vue'
import { useLogin } from 'store/login'
const loginStore = useLogin()
import { useRouter, useRoute } from 'vue-router'
let router = useRouter()
const signOut = () => {
  loginStore.LogOut().then(res => {
    router.push({
      path: '/login'
    })
  })
}
</script>
<style scoped lang="scss">