Skip to content

Commit 4e951db

Browse files
committed
扩展包资源路径换成相对路径
1 parent 2be865e commit 4e951db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/layouts/base.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
1212
<link rel="stylesheet" href="{{ $path }}">
1313
@else
14-
<link rel="stylesheet" href="{{route('admin.styles',['style'=>$name])}}">
14+
<link rel="stylesheet" href="{{route('admin.styles',['style'=>$name],false)}}">
1515
@endif
1616

1717
@endforeach
@@ -38,7 +38,7 @@
3838
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
3939
<script src="{!! $path !!}"></script>
4040
@else
41-
<script src="{{route('admin.scripts',['script'=>$name])}}"></script>
41+
<script src="{{route('admin.scripts',['script'=>$name],false)}}"></script>
4242
@endif
4343
@endforeach
4444
<script>

0 commit comments

Comments
 (0)