Fix(千县&店铺入驻):[#5234]后台店铺分类添加超过 10 个类别,前端页面只展示前 10 个,多余分类展示缺失

This commit is contained in:
lifizer
2026-05-20 17:06:40 +08:00
parent 1e78f76be1
commit 638eadb632
4 changed files with 18 additions and 9 deletions
+8 -2
View File
@@ -698,7 +698,10 @@ export default {
this.hotelTypeList = data.hotelTypeList || []
this.columnsType = this.hotelTypeList
this.notice = data.merchantApplyNotice
getCountyFamousHotelType().then(res => {
getCountyFamousHotelType({
page: 1,
limit: 9999
}).then(res => {
const listData = Array.isArray(res.data)
? res.data
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
@@ -843,7 +846,10 @@ export default {
this.form.isCountyFamous = value
if (value === 1) {
if (this.countyFamousHotelTypeList.length === 0) {
getCountyFamousHotelType().then(res => {
getCountyFamousHotelType({
page: 1,
limit: 9999
}).then(res => {
const listData = Array.isArray(res.data)
? res.data
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []