兰宝车间质量管理系统-前端
wujun
2024-04-09 6b4d756a9d53d32e542fd00f5ebba07735c67b50
src/views/index.vue
@@ -96,13 +96,6 @@
</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');
});
const goTarget = (url: string) => {
  window.open(url, '__blank');
};