修复关闭游客上传后公告无法弹出的问题
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
@if(\App\Utils::config(\App\Enums\ConfigKey::SiteNotice))
|
||||
<x-modal>
|
||||
<div class="markdown-body">
|
||||
{!! (new Parsedown())->parse(\App\Utils::config(\App\Enums\ConfigKey::SiteNotice)) !!}
|
||||
</div>
|
||||
</x-modal>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
if (! sessionStorage.getItem('noticed')) {
|
||||
Alpine.store('modal').open = true;
|
||||
sessionStorage.setItem('noticed', '1');
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@endif
|
||||
@@ -46,6 +46,7 @@
|
||||
</x-container>
|
||||
</div>
|
||||
</body>
|
||||
@include('common.notice')
|
||||
<script>
|
||||
// 开关组件默认值
|
||||
let setSwitch = function (e) {
|
||||
|
||||
@@ -35,21 +35,6 @@
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@if(\App\Utils::config(\App\Enums\ConfigKey::SiteNotice))
|
||||
<x-modal>
|
||||
<div class="markdown-body">
|
||||
{!! (new Parsedown())->parse(\App\Utils::config(\App\Enums\ConfigKey::SiteNotice)) !!}
|
||||
</div>
|
||||
</x-modal>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
if (! sessionStorage.getItem('noticed')) {
|
||||
Alpine.store('modal').open = true;
|
||||
sessionStorage.setItem('noticed', '1');
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@endif
|
||||
@include('common.notice')
|
||||
|
||||
</x-guest-layout>
|
||||
|
||||
Reference in New Issue
Block a user