Fix(千县&店铺入驻):[#5234]后台店铺分类添加超过 10 个类别,前端页面只展示前 10 个,多余分类展示缺失
This commit is contained in:
@@ -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)) || []
|
||||
|
||||
Reference in New Issue
Block a user