File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed
Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div class =" main-container" :class =" { 'has-top-banner': showTopBanner }" >
3- <BannerTop v-if =" showTopBanner" @close =" closeBannerTop" />
2+ <div class =" main-container" >
43 <ParentLayout >
54 <template #sidebar-top >
65 <div class =" sponsors sponsors-top" >
@@ -42,31 +41,16 @@ import { defineAsyncComponent } from 'vue'
4241import DefaultTheme from ' vitepress/dist/client/theme-default'
4342import sponsors from ' ../components/sponsors.json'
4443
45- const BannerTop = defineAsyncComponent (() =>
46- import (' ../components/BannerTop.vue' )
47- )
48-
4944export default {
5045 name: ' Layout' ,
5146 components: {
52- ParentLayout: DefaultTheme .Layout ,
53- BannerTop,
47+ ParentLayout: DefaultTheme .Layout
5448 },
5549 data () {
5650 return {
57- sponsors,
58- showTopBanner: false ,
51+ sponsors
5952 }
60- },
61- mounted () {
62- this .showTopBanner = ! localStorage .getItem (' VS_BTS_BANNER_CLOSED' )
63- },
64- methods: {
65- closeBannerTop () {
66- this .showTopBanner = false
67- localStorage .setItem (' VS_BTS_BANNER_CLOSED' , 1 )
68- },
69- },
53+ }
7054}
7155 </script >
7256
You can’t perform that action at this time.
0 commit comments