Closed LeifJG closed 7 years ago
能不能不要views这个目录,将http://localhost:8091/views/home/list.html变成http://localhost:8091/home/list.html这样
本地开发不能去掉,但是构建到生产环境下,有很多方式可以去掉view这一层目录的,例如ngiux,但你需要配置nginx才可以
view
明白了,感谢大神,准备从ngiux解决了
能不能不要views这个目录,将http://localhost:8091/views/home/list.html变成http://localhost:8091/home/list.html这样