FiveDigitLP
Reactively add/remove a class name to <body>, from within a component...
Thanks! That didn't seem to work.
At this point, I think it might have something to do with the way I have my page routes set up. For some reason, I have a
software.vue
page set up in the root of my pages
folder in addition to having the nested routes under /software
. I remember reading in the documentation during the early stages of my project about this being an option, but I don't remember why exactly I chose this structure as I think it has caused more headaches than it's worth.45 replies
Reactively add/remove a class name to <body>, from within a component...
I hate to piggy-back on this, but at the same time I am dealing with something very similar. The primary difference being that I don't even have any sort of conditional for the class.
My goal is to have a body class that shows up on some pages and not on others. I thought it would be simple enough if I set
bodyAttrs
differently between pages, but that doesn't seem to be doing it. I have tried both setting the value bodyAttrs: { class: }
to a ref
and adding an anonymous function as above, but the class still seems to stick between pages. Any ideas??
Here's what I have for my pricing page:
And here's another page:
The title and page description changes, so I'm not sure why the bodyAttrs
doesn't.45 replies
NuxtLink create an a href="", but a click on it doesn't change page, anything happen
It may be invalid, but that shouldn't be causing his problem. In our code, we put NuxtLinks around PrimeVue buttons that render the same as above and they work just fine.
7 replies
POST to page returns 405 error
In case anyone else struggles with this issue in the future, it does seem that this is an Azure issue and seemingly how they expect/intend for it to work:
https://github.com/Azure/static-web-apps/issues/1132
https://learn.microsoft.com/en-us/azure/static-web-apps/apis-overview
https://github.com/Azure/static-web-apps/issues/831
20 replies
POST to page returns 405 error
If so, I unfortunately can't get that right now as it's our software team's code and I don't directly have access to it. That being said, any POST calls made to any directory outside of ~/server/api results in a 405
20 replies