mental-health-web/src/views/index.vue

30 lines
712 B
Vue
Raw Normal View History

2024-03-15 03:07:18 +00:00
<template>
<div class="app-container home">
2024-04-26 09:10:09 +00:00
<el-button round>
<router-link target="_blank" to="/bigScreen">
<el-icon>
<FullScreen />
</el-icon><span></span>
</router-link>
</el-button>
2024-03-15 06:58:28 +00:00
<img src="@/assets/images/welcome.png" />
2024-03-15 03:07:18 +00:00
</div>
</template>
<script setup name="Index" lang="ts">
2024-04-26 09:10:09 +00:00
// import { initWebSocket } from '@/utils/websocket';
2024-03-15 03:07:18 +00:00
2024-04-26 09:10:09 +00:00
// onMounted(() => {
// let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'
// initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + "/resource/websocket");
// });
2024-03-15 03:07:18 +00:00
</script>
<style scoped lang="scss">
.home {
2024-03-15 06:58:28 +00:00
img {
width: 100%;
2024-03-15 03:07:18 +00:00
}
}
</style>