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

23 lines
498 B
Vue
Raw Normal View History

2024-03-15 03:07:18 +00:00
<template>
<div class="app-container home">
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">
import { initWebSocket } from '@/utils/websocket';
onMounted(() => {
let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'
initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + "/resource/websocket");
});
</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>