mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
if (useRoute().path === '/plugins/ordering') {
|
|
if (!nuxtApp.$layerPluginPre) {
|
|
throw createError('layer plugin failed to run before end project plugin')
|
|
}
|
|
if (!nuxtApp.$layerPluginPost) {
|
|
throw createError('layer plugin failed to run before end project plugin')
|
|
}
|
|
}
|
|
})
|