修改冀北现场问题
This commit is contained in:
@@ -26,15 +26,15 @@ const key = ref('')
|
||||
defineOptions({
|
||||
name: 'supervision/supervision/manage'
|
||||
})
|
||||
let tabList = ['3', '4']
|
||||
const tabList = ref(['3', '4'])
|
||||
const activeName: any = ref('3')
|
||||
onMounted(() => {
|
||||
let key = window.location.href.slice(-1)
|
||||
let key = window.location.href.split('?')[0].slice(-1)
|
||||
const isNumber = /^\d$/.test(key)
|
||||
// if (isNumber) {
|
||||
// tabList = [key]
|
||||
// activeName.value = key
|
||||
// }
|
||||
if (isNumber) {
|
||||
tabList.value = [key]
|
||||
activeName.value = key
|
||||
}
|
||||
})
|
||||
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user