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');