修改列表banner参数

master
fuxiaochun 2023-08-28 10:21:03 +08:00
parent 356a915953
commit 381c6c0280
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ watch(cid, (newCid, oldCid)=>{
});
const getBanner = ()=>{
let params = {key: 'pc_business'};
let params = {key: `pc_business_${cid.value}` };
http('/api/banner', params, 'get').then(res => {
banner.value = Array.isArray(res.data) ? res.data[0] : {};
}).catch(err => {

View File

@ -37,7 +37,7 @@ onBeforeMount(() => {
});
const getBanner = () => {
let params = { key: `pc_government` }
let params = { key: `pc_government_${parent_id.value}` }
http('/api/banner', params, 'get').then(res => {
banner.value = Array.isArray(res.data) ? res.data[0] : {};
}).catch(err => {