fix(App.vue): 🐛 修复切换水印的状态控制台报错以及重新刷新路由导致闪屏问题
This commit is contained in:
@@ -2,16 +2,13 @@
|
||||
<el-config-provider :locale="locale" :size="size">
|
||||
<!-- 开启水印 -->
|
||||
<el-watermark
|
||||
v-if="watermarkEnabled"
|
||||
:font="{ color: fontColor }"
|
||||
:content="defaultSettings.watermarkContent"
|
||||
:content="watermarkEnabled ? defaultSettings.watermarkContent : ''"
|
||||
:z-index="9999"
|
||||
class="wh-full"
|
||||
>
|
||||
<router-view />
|
||||
</el-watermark>
|
||||
<!-- 关闭水印 -->
|
||||
<router-view v-else />
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user