fix: 问卷逻辑页,搜索问题后,问题页码错乱
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div v-for="(item, itemIndex) in quesList" :key="itemIndex">
|
<div v-for="(item, itemIndex) in quesList" :key="itemIndex">
|
||||||
<div class="catalog-page">第{{ itemIndex + 1 }}页({{ item.name }})</div>
|
<div class="catalog-page">第{{ item.page }}页({{ item.name }})</div>
|
||||||
<template v-for="child in item.child" :key="child.id">
|
<template v-for="child in item.child" :key="child.id">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>
|
<template #title>
|
||||||
@@ -189,8 +189,9 @@ export default {
|
|||||||
]
|
]
|
||||||
dealQuestion[0].unshift(...introduce)
|
dealQuestion[0].unshift(...introduce)
|
||||||
const result = []
|
const result = []
|
||||||
dealQuestion.forEach((ques) => {
|
dealQuestion.forEach((ques, index) => {
|
||||||
result.push({
|
result.push({
|
||||||
|
page: index + 1,
|
||||||
name: `${ques[0]?.title || ''} ~ ${ques[ques.length - 1]?.title || ''}`,
|
name: `${ques[0]?.title || ''} ~ ${ques[ques.length - 1]?.title || ''}`,
|
||||||
child: ques
|
child: ques
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user