From 5eab7802715017b7266320fbd81ca1542aab4a34 Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Sat, 15 Jul 2023 11:30:59 +0800 Subject: [PATCH] =?UTF-8?q?FixBUG:=20=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E8=B7=B3=E8=BD=AC=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复注册跳转到 console 页面 添加 account 的默认页面 dashboard Signed-off-by: XiaoLFeng --- resources/views/auth/register.blade.php | 2 +- resources/views/modules/navbar.blade.php | 3 ++- routes/web.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 87c791a..81286fb 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -87,7 +87,7 @@ function user_change() { dataType: "json", success: function (returnData) { if (returnData.output === "Success") { - window.location.href = '{{ route('console.dashboard') }}' + window.location.href = '{{ route('account.dashboard') }}' } else { window.alert("错误!") } diff --git a/resources/views/modules/navbar.blade.php b/resources/views/modules/navbar.blade.php index 0247025..39b1f56 100644 --- a/resources/views/modules/navbar.blade.php +++ b/resources/views/modules/navbar.blade.php @@ -59,7 +59,8 @@ class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text- 管理员 @endif - + 个人设置 diff --git a/routes/web.php b/routes/web.php index c6dcd64..46c0817 100644 --- a/routes/web.php +++ b/routes/web.php @@ -46,6 +46,7 @@ }); Route::prefix('account')->middleware('auth')->group(function () { + Route::get('dashboard')->name('account.dashboard'); Route::prefix('friend')->group(function () { Route::get('link')->name('account.friend.link'); Route::get('edit')->name('account.friend.edit');