【发布时间】:2017-02-21 09:28:53
【问题描述】:
我一直有这个奇怪的问题,如果我添加一些额外的
{path: '/detailed-support', component: Detailed, name: 'detailed', children:[
{path: 'start', component: Start, name: 'starting'}
]},
当我尝试手动访问它时,只需将其放入浏览器http://localhost:8080/detailed-support/start 即可加载内容,但它不想加载图像或位于我的文件夹中的任何资源。它给出了一个错误Failed to load resource: the server responded with a status of 404 (Not Found)。
可能是什么?在我的开发检查器中,它指向这个 -> <link rel="stylesheet" type="text/css" href="./src/vendors/css/ionicons.min.css"> 好像路径有问题。但是为什么当我在父组件中时它可以工作,但是一旦我去孩子那里它就开始崩溃了
【问题讨论】:
标签: javascript html vue.js