微调
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<jointDebugList :id="id" v-if="activeName == '3'"/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="终端周期检测" name="4">
|
||||
<cycleDetection :id="id" v-if="activeName == '4'"/>
|
||||
<cycleDetection :id="id" :businessKey='key' v-if="activeName == '4'"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
@@ -33,6 +33,7 @@ const activeName = ref('1')
|
||||
|
||||
const route = useRoute()
|
||||
const id = ref('')
|
||||
const key = ref('')
|
||||
|
||||
watch(() => route.query.t, async (newValue, oldValue) => {
|
||||
if (route.fullPath.includes('terminalNetwotk')) {
|
||||
@@ -47,6 +48,7 @@ watch(() => route.query.t, async (newValue, oldValue) => {
|
||||
activeName.value = '4'
|
||||
}
|
||||
id.value = (route.query.id as string) || 'null'
|
||||
key.value = (route.query.key as string) || 'null'
|
||||
id.value = id.value + '@' + route.query.t
|
||||
}
|
||||
}, {deep: true, immediate: true})
|
||||
|
||||
Reference in New Issue
Block a user