feat(tenant): 增加租户基础与域名解析
This commit is contained in:
@@ -697,11 +697,6 @@ function resourceText(row: Listing, key: string) {
|
||||
return quantity > 0 ? formatQuantity(quantity) : '-'
|
||||
}
|
||||
|
||||
function skinGroupText(row: Listing, groupKey: string) {
|
||||
const skins = getSkinGroup(row, groupKey)
|
||||
return skins.length ? skins.join('、') : '-'
|
||||
}
|
||||
|
||||
function skinAssetText(row: Listing) {
|
||||
const groups = [
|
||||
{ label: '刀', key: 'melee' },
|
||||
|
||||
@@ -68,7 +68,7 @@ const displayAnnouncements = computed(() => {
|
||||
const banners = ref<HomeBannerSlide[]>(defaultHomeBanners)
|
||||
const displayBanners = computed<HomeBannerSlide[]>(() => {
|
||||
const list =
|
||||
siteStore.isDistribution && siteStore.banners.length > 0
|
||||
siteStore.hasCustomBrand && siteStore.banners.length > 0
|
||||
? mapDistributionHomeBanners(siteStore.banners, siteStore.siteName)
|
||||
: banners.value
|
||||
return list.filter(slide => slide.enabled !== false)
|
||||
|
||||
@@ -114,7 +114,7 @@ const displayAnnouncements = computed(() => {
|
||||
const bannerSlides = ref<HomeBannerSlide[]>(defaultHomeBanners)
|
||||
const displayBanners = computed<HomeBannerSlide[]>(() => {
|
||||
const list =
|
||||
siteStore.isDistribution && siteStore.banners.length > 0
|
||||
siteStore.hasCustomBrand && siteStore.banners.length > 0
|
||||
? mapDistributionHomeBanners(siteStore.banners, siteStore.siteName)
|
||||
: bannerSlides.value
|
||||
return list.filter(slide => slide.enabled !== false)
|
||||
@@ -873,15 +873,13 @@ if (!restoreHomeConfigFromCache()) {
|
||||
<section class="mobile-hero">
|
||||
<div class="mobile-topbar">
|
||||
<div class="mobile-brand">
|
||||
<span class="mobile-logo">{{
|
||||
siteStore.isDistribution ? siteStore.siteName.slice(0, 1) : '锤'
|
||||
}}</span>
|
||||
<span class="mobile-logo">{{ siteStore.brandMark }}</span>
|
||||
<div>
|
||||
<div class="mobile-brand-title-row">
|
||||
<strong>{{ siteStore.siteName }}</strong>
|
||||
</div>
|
||||
<small>{{
|
||||
siteStore.isDistribution ? siteStore.storefrontText.tagline : '哈夫币租号'
|
||||
siteStore.hasCustomBrand ? siteStore.storefrontText.tagline : '哈夫币租号'
|
||||
}}</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user