vue3 script setup set components name Default routes.forEach(route => route.component().then(mod=>mod.default.name=route.name)); 1 routes.forEach(route => route.component().then(mod=>mod.default.name=route.name));