修改初始化链接

This commit is contained in:
thiszhc 2023-10-18 10:53:05 +08:00
parent 71ca950544
commit 9150b88334
2 changed files with 2 additions and 4 deletions

View File

@ -98,12 +98,14 @@ import { ComponentInternalInstance } from "vue";
import { TenantVO } from "@/api/types";
import notice from './notice/index.vue';
import useNoticeStore from '@/store/modules/notice';
import { getToken } from '@/utils/auth';
const appStore = useAppStore();
const userStore = useUserStore();
const settingsStore = useSettingsStore();
const noticeStore = storeToRefs(useNoticeStore());
const newNotice = ref(<number>0);
let websocket = new WebSocket(import.meta.env.VITE_APP_WEBSOCKET_URL + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const userId = ref(userStore.userId);

View File

@ -50,10 +50,6 @@ const start = () => {
const sendMessage = () => {
sendMsg(conf.send);
};
onMounted(() => {
start();
});
</script>
<style lang="scss" scoped>