feat: 更新版权接口与彩票列表展示
This commit is contained in:
+4
-1
@@ -34,6 +34,7 @@ const ApiClient = {
|
||||
webConfig: '/api/web/config',
|
||||
configList: '/api/web/config/list',
|
||||
configSite: '/api/web/config/site',
|
||||
configCopyright: '/api/web/config/copyright',
|
||||
bannerList: '/api/web/banner/list',
|
||||
adList: '/api/web/ad/list',
|
||||
freeArticleRecommend: '/api/web/free-article/recommend',
|
||||
@@ -911,9 +912,10 @@ const ApiClient = {
|
||||
},
|
||||
|
||||
async loadHomeIndexCompat() {
|
||||
const [configList, config, siteConfig, menus, banners, notices, ads, freeArticles, links, latest] = await Promise.all([
|
||||
const [configList, config, copyright, siteConfig, menus, banners, notices, ads, freeArticles, links, latest] = await Promise.all([
|
||||
this.get('/api/web/config/list').catch(() => ({ data: [] })),
|
||||
this.get('/api/web/config').catch(() => ({ data: {} })),
|
||||
this.get(this.API.configCopyright).catch(() => ({ data: [] })),
|
||||
this.get('/api/web/config/site').catch(() => ({ data: {} })),
|
||||
this.loadHomeMenusCompat().catch(() => ({ data: [] })),
|
||||
this.get('/api/web/banner/list').catch(() => ({ data: [] })),
|
||||
@@ -977,6 +979,7 @@ const ApiClient = {
|
||||
webConfigs: this.asArray(this.pickData(configList, [])).length
|
||||
? this.asArray(this.pickData(configList, []))
|
||||
: this.configObjectToList(config.data || {}),
|
||||
copyrightConfigs: this.asArray(this.pickData(copyright, [])),
|
||||
siteConfig: siteConfig.data || {},
|
||||
menuList,
|
||||
navList: menuList,
|
||||
|
||||
Reference in New Issue
Block a user