Skip to content

Commit

Permalink
扩展包资源路径换成相对路径
Browse files Browse the repository at this point in the history
  • Loading branch information
yidalh committed Oct 16, 2020
1 parent 2be865e commit 4e951db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layouts/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
<link rel="stylesheet" href="{{ $path }}">
@else
<link rel="stylesheet" href="{{route('admin.styles',['style'=>$name])}}">
<link rel="stylesheet" href="{{route('admin.styles',['style'=>$name],false)}}">
@endif

@endforeach
Expand All @@ -38,7 +38,7 @@
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
<script src="{!! $path !!}"></script>
@else
<script src="{{route('admin.scripts',['script'=>$name])}}"></script>
<script src="{{route('admin.scripts',['script'=>$name],false)}}"></script>
@endif
@endforeach
<script>
Expand Down

0 comments on commit 4e951db

Please sign in to comment.