Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
YudhistiraA committed Jan 6, 2025
1 parent 95523e8 commit a274500
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/js/app-iris.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ createInertiaApp(
{
title : (title) => `${title} - ${appName}`,
resolve: name => {
const pages = import.meta.glob('./Pages/Iris/**/*.vue', { eager: true })
let page = pages[`./Pages/Iris/${name}.vue`]
const irisPages = import.meta.glob('./Pages/Iris/**/*.vue', { eager: true })
const retinaPages = import.meta.glob('./Pages/Retina/**/*.vue', { eager: true }) // need improvement in the future
let page = irisPages[`./Pages/Iris/${name}.vue`] ? irisPages[`./Pages/Iris/${name}.vue`] : retinaPages[`./Pages/Retina/${name}.vue`] // need improvement in the future
console.log('page', page)
if(!page) console.error(`File './Pages/Iris/${name}.vue' is not exist`)
page.default.layout = page.default.layout || IrisLayout
Expand Down

0 comments on commit a274500

Please sign in to comment.