更新
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<img src="@/assets/images/Search_icon.png" />
|
||||
<div>打开作业文件</div>
|
||||
</div>
|
||||
<div @click="goUrl('/manage')" class="flex_box flex_row_center top_btn2">
|
||||
<div @click="goSet('/manage')" class="flex_box flex_row_center top_btn2">
|
||||
<img src="@/assets/images/Setting_icon.png" />
|
||||
<div>系统设置</div>
|
||||
</div>
|
||||
@@ -541,9 +541,15 @@ export default {
|
||||
return
|
||||
}
|
||||
if (e) {
|
||||
that.$store.dispatch('chat/initWebSocket')
|
||||
that.store.commit('setData', { name: 'workStatus', data: true })
|
||||
setTimeout(() => {
|
||||
that.$store.dispatch('chat/initWebSocket')
|
||||
}, 500);
|
||||
} else {
|
||||
that.$store.dispatch('chat/closeWebsocket')
|
||||
that.store.commit('setData', { name: 'workStatus', data: false })
|
||||
setTimeout(() => {
|
||||
that.$store.dispatch('chat/closeWebsocket')
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
// 执行
|
||||
@@ -716,15 +722,8 @@ export default {
|
||||
}
|
||||
that.showAll = !that.showAll
|
||||
},
|
||||
// 跳转
|
||||
goUrl(e) {
|
||||
if (!that.workStatus) {
|
||||
that.$message({
|
||||
message: '请先连接服务',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
// 跳转设置
|
||||
goSet(e) {
|
||||
that.$router.push({ path: e })
|
||||
},
|
||||
// 退出登录
|
||||
|
||||
Reference in New Issue
Block a user