各位程序员,您好,我需要一些建议,我哪里出了问题。。我在pages目录上创建了一个新文件夹后,似乎无法实时呈现页面,或者这是可能的,或者我应该回滚并将所有模板移回pages文件夹
**directory**
|_pages
|_Accounting(new created folder)
|_Journal.vue
|_Cash Vouchers.vue
|_CVPrint.vue
|_Components
|_Layouts
|_Auth
|_dashboard.vue
Web.php
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
Route::get('/about', function () {
return Inertia::render('About');
})->name('about');
Route::get('/settings', function () {
return Inertia::render('Settings');
})->name('settings');
Route::get('/journal', function () {
return Inertia::render('Accounting.Journal');
})->name('journal');
Route::get('/cvprint', function () {
return Inertia::render('Accounting.CVPrint');
})->name('cvprint');
Route::get('/cashvoucher', function () {
return Inertia::render('Accounting.CashVoucher');
})->name('cashvoucher');
});
边栏.vue
<li>
<NavlinkCustom :href="route('cashvoucher')" class="flex items-center py-2 px-4 hover:bg-gray-950 hover:text-gray-100 rounded-md"
:active="$page.component==='CashVoucher'"
>
<i class="ri-money-dollar-circle-line"></i>
<span class="text-sm">Cash Voucher</span>
</NavlinkCustom>
</li>
<li>
<NavlinkCustom :href="route('cvprint')" class="flex items-center py-2 px-4 hover:bg-gray-950 hover:text-gray-100 rounded-md"
:active="$page.component==='CVPrint'"
>
<i class="ri-currency-line"></i>
<span class="text-sm">CV Printing</span>
</NavlinkCustom>
</li>
<li>
<NavlinkCustom :href="route('journal')" class="flex items-center py-2 px-4 hover:bg-gray-950 hover:text-gray-100 rounded-md"
:active="$page.component==='Journal'"
>
<i class="ri-currency-line"></i>
<span class="text-sm">Journal Entry</span>
</NavlinkCustom>
</li>
然后我的错误是错误的,因为due用句点(.)而不是(/)渲染