我已经准备好了我的Angular路由脚本,这似乎是有效的,因为当我将登录组件设置为加载路径'‘时,它将在example.com加载组件,并且如果我将路由器路径从'’更改为' login‘,登录组件将不再加载到example.com 但是,当我在.com/之后添加任何内容时,我的server.js脚本会抛出"Cannot GET /“错误。我将我的Angular路由器设置为当url是example.com/login时加载一个登录组件,但
我试图通过http://<IP Address>:3000/image.jpg访问公共目录中的静态映像文件,只有登录到服务器时才可用。>/node_modules/express/lib/router/index.js:313:12)
at <path>/node_modules/express/lib/router/index.js(<path>/nod