Skip to content

Commit

Permalink
fix: fetchSettings has no await (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhunter2333 authored Apr 25, 2024
1 parent 0f6d7a1 commit bcfcbd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ onMounted(async () => {
<n-config-provider :locale="zhCN" :theme="theme">
<n-global-style />
<n-message-provider>
<n-grid x-gap="12" :cols="isMobile ? 4 : 6">
<n-grid :x-gap="12" :cols="isMobile ? 4 : 6">
<n-gi v-if="!isMobile">
<div class="side" v-if="settings.ad_client">
<div class="side">
<ins class="adsbygoogle" style="display:block" :data-ad-client="settings.ad_client"
:data-ad-slot="settings.ad_slot" data-ad-format="auto" data-full-width-responsive="true"></ins>
</div>
</n-gi>
<n-gi span="4">
<n-gi :span="4">
<div class="main">
<n-page-header subtitle="本项目仅供娱乐">
<template #title>
Expand Down Expand Up @@ -87,8 +87,8 @@ onMounted(async () => {
<router-view></router-view>
</div>
</n-gi>
<n-gi v-if="!isMobile">
<div class="side" v-if="settings.ad_client">
<n-gi :span="1" v-if="!isMobile">
<div class="side">
<ins class="adsbygoogle" style="display:block" :data-ad-client="settings.ad_client"
:data-ad-slot="settings.ad_slot" data-ad-format="auto" data-full-width-responsive="true"></ins>
</div>
Expand Down

0 comments on commit bcfcbd4

Please sign in to comment.