修复业务脚本加载与菜单首屏闪烁
This commit is contained in:
parent
953917f16a
commit
e336ebc37a
@ -114,7 +114,7 @@
|
||||
</div>
|
||||
|
||||
@if (($page['slug'] ?? null) === 'store-receiving-bills')
|
||||
<script src="{{ asset('js/business/pages.min.js') }}?id={{ md5_file(public_path('js/business/pages.min.js')) }}"></script>
|
||||
<script src="{{ asset('public/js/business/pages.min.js') }}?id={{ md5_file(public_path('js/business/pages.min.js')) }}"></script>
|
||||
@endif
|
||||
</x-slot>
|
||||
</x-layouts.admin>
|
||||
|
||||
@ -16,6 +16,13 @@
|
||||
|
||||
<x-layouts.pwa.head />
|
||||
|
||||
<style>
|
||||
/* 主样式下载完成前保持桌面菜单隐藏,避免未样式化的大字闪现。 */
|
||||
[x-ref="realMenu"].hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href="{{ asset('public/css/custom_loading.css?v=' . version('short')) }}" type="text/css">
|
||||
|
||||
<!-- Favicon -->
|
||||
@ -31,7 +38,7 @@
|
||||
<link rel="stylesheet" href="{{ asset('public/css//third_party/swiper-bundle.min.css?v=' . version('short')) }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ asset('public/css//third_party/vue-html-editor.css?v=' . version('short')) }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ asset('public/css/element.css?v=' . version('short')) }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=' . version('short')) }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ asset('public/css/app.css') }}?id={{ md5_file(public_path('css/app.css')) }}" type="text/css">
|
||||
|
||||
@stack('css')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user