|
|
@ -7,7 +7,6 @@ |
|
|
@click.native="showSettingDialog = true"> |
|
|
@click.native="showSettingDialog = true"> |
|
|
</head-image> |
|
|
</head-image> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-menu background-color="#333333" text-color="#ddd" style="margin-top: 30px;"> |
|
|
<el-menu background-color="#333333" text-color="#ddd" style="margin-top: 30px;"> |
|
|
<el-menu-item title="聊天"> |
|
|
<el-menu-item title="聊天"> |
|
|
<router-link v-bind:to="'/home/chat'"> |
|
|
<router-link v-bind:to="'/home/chat'"> |
|
|
@ -25,12 +24,10 @@ |
|
|
<span class="icon iconfont icon-group_fill"></span> |
|
|
<span class="icon iconfont icon-group_fill"></span> |
|
|
</router-link> |
|
|
</router-link> |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
|
|
|
|
|
|
<el-menu-item title="设置" @click="showSetting()"> |
|
|
<el-menu-item title="设置" @click="showSetting()"> |
|
|
<span class="el-icon-setting"></span> |
|
|
<span class="el-icon-setting"></span> |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
</el-menu> |
|
|
</el-menu> |
|
|
|
|
|
|
|
|
<div class="exit-box" @click="onExit()" title="退出"> |
|
|
<div class="exit-box" @click="onExit()" title="退出"> |
|
|
<span class="el-icon-circle-close"></span> |
|
|
<span class="el-icon-circle-close"></span> |
|
|
</div> |
|
|
</div> |
|
|
@ -61,7 +58,6 @@ import FullImage from '../components/common/FullImage.vue'; |
|
|
import ChatPrivateVideo from '../components/chat/ChatPrivateVideo.vue'; |
|
|
import ChatPrivateVideo from '../components/chat/ChatPrivateVideo.vue'; |
|
|
import ChatVideoAcceptor from '../components/chat/ChatVideoAcceptor.vue'; |
|
|
import ChatVideoAcceptor from '../components/chat/ChatVideoAcceptor.vue'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
HeadImage, |
|
|
HeadImage, |
|
|
@ -80,7 +76,6 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
init() { |
|
|
init() { |
|
|
this.$store.dispatch("load").then(() => { |
|
|
this.$store.dispatch("load").then(() => { |
|
|
|
|
|
|
|
|
// ws初始化 |
|
|
// ws初始化 |
|
|
this.$wsApi.connect(process.env.VUE_APP_WS_URL, sessionStorage.getItem("accessToken")); |
|
|
this.$wsApi.connect(process.env.VUE_APP_WS_URL, sessionStorage.getItem("accessToken")); |
|
|
this.$wsApi.onConnect(() => { |
|
|
this.$wsApi.onConnect(() => { |
|
|
|