@ -11,7 +11,7 @@ const routes = [
{
path: "/demo",
name: "demo",
component: import('@/views/demo.vue').then(e=>{
component: import('@/views/demo.vue').then(e=>{ // 引入文件路径错误,会导致不能热更新
e.default.name='demo' //组件命名
return e
}),