赋能案例bug修改

This commit is contained in:
851673013@qq.com 2022-06-15 20:36:01 +08:00
parent 96ef90a216
commit 2218e034bd
1 changed files with 6 additions and 6 deletions

View File

@ -108,6 +108,11 @@
import { useRouter } from 'vue-router'
const router = useRouter()
let val = router.currentRoute.value.query.val
const scrollTop = ref(0)
let dataFrom = ref({})
const domArr = ref([])
const selectNow = ref('')
let tabName = ref('案例背景')
console.log('val', val)
//
function pictureFormat(name) {
@ -122,9 +127,9 @@
val = name
router.push({ path: 'AssignCaseDetailPage', query: { val } })
}
let dataFrom = ref({})
const init = () => {
val = router.currentRoute.value.query.val
tabName.value = '案例背景'
if (val == '道路保洁监管场景') {
dataFrom.value = {
name: '道路保洁监管场景',
@ -216,7 +221,6 @@
},
{ immediate: true }
)
let tabName = ref('案例背景')
//tab
const tabSwitch = (item, index) => {
tabName.value = item.title
@ -258,13 +262,9 @@
view.style.top = '220px'
}
}
const scrollTop = ref(0)
const domArr = ref([])
const selectNow = ref('')
onMounted(() => {
// console.clear()
window.addEventListener('scroll', () => {
debugger
domArr.value = document.querySelectorAll(
'.assign-case-detail-page-content-center-card'
)