Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will the path be returned as an absolute path? #538

Open
Mi-liu opened this issue Nov 6, 2024 · 1 comment
Open

Will the path be returned as an absolute path? #538

Mi-liu opened this issue Nov 6, 2024 · 1 comment

Comments

@Mi-liu
Copy link

Mi-liu commented Nov 6, 2024

Can there be a configuration that controls absolute or relative?
This is very helpful when using UI libraries and flat routing

// This is now
{
  path: '/test',
  children:[{
    path: 'demo'
  }]
}

I hope it's the same as vite plugin pages

// vite.config.ts
plugins: [
 VueRouter({
   // Type: 'absolute' | 'relative'
   importPath: 'absolute',  
 })
]

// to
{
  path: '/test',
  children:[{
    path: '/test/demo'
  }]
}
@posva
Copy link
Owner

posva commented Nov 6, 2024

What is the use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants