fix(frontend): avoid naming confliction of MkAd
This commit is contained in:
parent
93fc2456b3
commit
7d842c1a95
5 changed files with 6 additions and 6 deletions
|
|
@ -53,7 +53,7 @@ import { prefer } from '@/preferences.js';
|
|||
type Ad = (typeof instance)['ads'][number];
|
||||
|
||||
const props = defineProps<{
|
||||
prefer: string[];
|
||||
preferForms: string[];
|
||||
specify?: Ad;
|
||||
}>();
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ const choseAd = (): Ad | null => {
|
|||
ratio: 0,
|
||||
} : ad);
|
||||
|
||||
let ads = allAds.filter(ad => props.prefer.includes(ad.place));
|
||||
let ads = allAds.filter(ad => props.preferForms.includes(ad.place));
|
||||
|
||||
if (ads.length === 0) {
|
||||
ads = allAds.filter(ad => ad.place === 'square');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue