|
|
@@ -192,7 +192,7 @@
|
|
|
})
|
|
|
const postName = computed(() => {
|
|
|
return (val) => {
|
|
|
- return typeOptionsVal.value.filter((r) => r.value == val)[0].label
|
|
|
+ return typeOptionsVal.value.find((r) => r.value == val).label
|
|
|
}
|
|
|
})
|
|
|
const typeValue = ref('所有分类')
|
|
|
@@ -254,7 +254,7 @@
|
|
|
}
|
|
|
const loadData = (parameter, a) => {
|
|
|
if (exType.value) {
|
|
|
- let postExtend = moduleTypeList.value.filter((r) => r.id == searchFormState.sortOrder)[0]?.state
|
|
|
+ let postExtend = moduleTypeList.value.find((r) => r.id == searchFormState.sortOrder).state
|
|
|
return forumApi.moreList(Object.assign(parameter,searchFormState, { postExtend: postExtend })).then((data) => {
|
|
|
tableTotal.value = data.total
|
|
|
if (a) {
|
|
|
@@ -285,7 +285,7 @@
|
|
|
|
|
|
// 切换应用标签查询菜单列表
|
|
|
const moduleClock = (value, t) => {
|
|
|
- exType.value = false
|
|
|
+ exType.value = true
|
|
|
searchFormState.sortOrder = value
|
|
|
pagination.value.current = 1
|
|
|
moreText.value = '加载更多'
|