Я предполагаю, что вы пытаетесь реализовать маршруты, использующие разделение кода и асинхронную загрузку компонентов, когда они требуются, с экраном загрузки?
https://vuejs.org/v2/guide /components-dynamic-async.html#Handling-Loading-State
const AsyncComponent = () => ({
// The component to load (should be a Promise)
component: import('./MyComponent.vue'),
// A component to use while the async component is loading
loading: LoadingComponent,
// A component to use if the load fails
error: ErrorComponent,
// Delay before showing the loading component. Default: 200ms.
delay: 200,
// The error component will be displayed if a timeout is
// provided and exceeded. Default: Infinity.
timeout: 3000
})
let router = new Router({
routes: [
{
name: 'example',
path: '/example',
component: AsyncComponent,
},
]
})
Для запуска из .bat файла:
start STS.exe -data "D:\My Workspace\workspace1"