Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: synchronize the logic of clientLayout to defaultLayout, close #130 #132

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

markthree
Copy link
Collaborator

@JohnCampionJr
ClientLayout handled issue #130, so I synchronized the logic. If any changes ignore any cases, please let me know

@markthree markthree changed the title fix: synchronize the logic of defaultLayout to clientLayout, fix #130 fix: synchronize the logic of defaultLayout to clientLayout, close #130 Dec 15, 2023
@markthree markthree changed the title fix: synchronize the logic of defaultLayout to clientLayout, close #130 fix: synchronize the logic of clientLayout to defaultLayout, close #130 Dec 15, 2023
@JohnCampionJr
Copy link
Owner

JohnCampionJr commented Dec 16, 2023

OK, Trying to confirm the edge cases here All are fine except one.

With vue-router, the pages/second/index.vue in the spa example, the layout is overridden to second.
With unplugin-vue-router, the second layout is inserted inside the default.

I'm not sure there's any way to fix this due to the nature of unplugin-vue-router's structure. Any ideas?

I added a simpler example with unplugin-vue-router to test these

@JohnCampionJr
Copy link
Owner

I did figure out that it can be fixed with a top-level second.vue with layout set to false

@JohnCampionJr JohnCampionJr merged commit 2270f71 into JohnCampionJr:main Dec 16, 2023
1 check passed
@markthree
Copy link
Collaborator Author

markthree commented Dec 17, 2023

I did figure out that it can be fixed with a top-level second.vue with layout set to false

nice

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants