修复:清理大厅导航栏重复的老代码
- 彻底移除 rooms/index.blade.php 中的 nav-right 定义块 - 移除 layouts/app.blade.php 中多增加的资料按钮 - 修正退出登录按钮的文案 - 修复前台页面由于继承引起的头部菜单重复显示问题
This commit is contained in:
@@ -92,11 +92,6 @@
|
||||
class="text-indigo-200 hover:text-white font-bold transition hidden sm:flex items-center">
|
||||
<span class="mr-1">📖</span> 说明
|
||||
</a>
|
||||
<button
|
||||
@click="typeof showProfileModal !== 'undefined' ? showProfileModal = true : window.location.href='{{ route('rooms.index') }}'"
|
||||
class="text-indigo-200 hover:text-white font-bold transition hidden sm:flex items-center">
|
||||
<span class="mr-1">👤</span> 资料
|
||||
</button>
|
||||
@endauth
|
||||
|
||||
@yield('nav-right')
|
||||
@@ -115,7 +110,7 @@
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="text-xs border border-white/30 hover:bg-white/10 px-2 py-1.5 rounded transition font-medium text-white/80 hover:text-white">
|
||||
退出
|
||||
退出登录
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -29,24 +29,7 @@
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@section('nav-right')
|
||||
{{-- admin 后台直达 --}}
|
||||
@if (Auth::user()->user_level >= 15)
|
||||
<a href="{{ route('admin.dashboard') }}" class="text-indigo-200 hover:text-white font-bold hidden sm:block">⚙️ 后台</a>
|
||||
@endif
|
||||
{{-- 使用说明 --}}
|
||||
<a href="{{ route('guide') }}" class="text-indigo-200 hover:text-white font-bold text-sm hidden sm:block">📖 使用说明</a>
|
||||
{{-- 个人中心展示 --}}
|
||||
<button @click="showProfileModal = true" class="text-indigo-200 hover:text-white font-bold text-sm hidden sm:block">
|
||||
👤 个人资料
|
||||
</button>
|
||||
{{-- 退出登录 --}}
|
||||
<form action="{{ route('logout') }}" method="POST" class="inline">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="text-sm border border-white/30 hover:bg-white/10 px-4 py-2 rounded-md transition font-medium">退出登录</button>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
|
||||
@section('body-data',
|
||||
"x-data=\"{
|
||||
|
||||
Reference in New Issue
Block a user