some-ex-page.vue :
definePageMeta({
myMid : false
});
Or anything else. Most pages need this middleware, but there are pages that do not. I do not think it is a good idea to go through all of these pages and manually enter the name of the middleware:
some-ex-page.vue :
definePageMeta({
middleware : ["myMid"]
});
Or, for example, there is a way to add a new property to the page. In the middleware, I can check that if this property exists, I will avoid working from this page.
0 comments:
Post a Comment
Thanks