I am using Vue 3 with Vite with VueRouter
let test_Route = 'Test';
const routes = [
{ path: '/' , name:'default' ,component: () => import('@/views/login.vue') },
{ path: '/Test' , name:'Test' , component: () => import(`@/views/${test_Route}/login.vue`) }
]
console.log(routes)
//--the rest of the routing code
the problem is Vue does not import the Test component
when log routes - it does not process the template string @/views/${test_Route}/login.vue it treats it like its a normal string
so how to fix this