Merge pull request 'fix : 修改ws切换bug' (#333) from dengjie into dev
Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/333
This commit is contained in:
@@ -119,7 +119,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="300px">
|
||||
|
||||
<template #default="scope">
|
||||
<el-button type="primary" size="mini" style="font-weight: bold" @click="handleView(scope.row)" link>详情
|
||||
</el-button>
|
||||
@@ -477,6 +476,7 @@ const getTunnel = (id) => {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
tunnelList.value=res.data
|
||||
getScreenInfo(res.data[0]?.value)
|
||||
}
|
||||
}
|
||||
@@ -484,6 +484,7 @@ const getTunnel = (id) => {
|
||||
});
|
||||
}
|
||||
const changeTunnel = (e) => {
|
||||
socket.close()
|
||||
let newObj = {}
|
||||
tunnelList.value.forEach((item, index) => {
|
||||
if (index === e) {
|
||||
@@ -500,6 +501,7 @@ const changeTunnel = (e) => {
|
||||
nextTick(() => {
|
||||
showFan.value = true;
|
||||
});
|
||||
|
||||
}
|
||||
const manageSelect = (index) => {
|
||||
if (index === '站点管理') {
|
||||
@@ -517,6 +519,7 @@ const manageSelect = (index) => {
|
||||
}
|
||||
};
|
||||
const handleChangeSite = (item) => {
|
||||
socket.close()
|
||||
currentSite.value = item.label
|
||||
currentSiteId.value = item.value
|
||||
getTunnel(item.value)
|
||||
|
||||
Reference in New Issue
Block a user