lanke

Results comments of lanke

![image](https://user-images.githubusercontent.com/1082843/27821610-6b20b414-60d5-11e7-937c-4dc20ca5ff10.png) 在后端处理下 重新返回index.html就可以了。 models下app.js文件中query方法最后调用了window.location

静态文件不用自己再写controller配置了吧,spring boot直接能映射到static文件

![image](https://user-images.githubusercontent.com/1082843/28021474-993bf2ac-65ba-11e7-91e0-f2bca0efbbfd.png) 这样,打包前 在webapp中,打包后在static当中

![image](https://user-images.githubusercontent.com/1082843/28046488-89b3c70e-6616-11e7-8277-24f4e58eddba.png) java端这样返回就好了。 你可以看前端代码 models/app.js ![image](https://user-images.githubusercontent.com/1082843/28046548-03729764-6617-11e7-88c0-7f687b41193b.png)

npm run dev 且开启mock的时候应该没错吧? 有没有可能是哪个后端接口没写的原因?

![image](https://user-images.githubusercontent.com/1082843/28053711-68cb4e8a-6644-11e7-9451-9d50de77ba06.png) 对了 ,我当时也因为这个卡住了, 对login.js 的请求配spring mvc 映射到了控制器上而不是文件上。 spring boot 需要加上上图的配置

`@Configuration public class MyWebAppConfig extends WebMvcConfigurerAdapter { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/*/**.**.js").addResourceLocations("classpath:/static/"); super.addResourceHandlers(registry); } /** * 重写configurePathMatch此方法 * 设置其参数PathMatchConfigurer的属性UseSuffixPatternMatch值为false * 可以让路径中带小数点“.”后面的值不被忽略 */ @Override public void configurePathMatch(PathMatchConfigurer configurer) {...

你看下visit是否被正确的初始化为数组了。 如果不是,就证明permissions没有传过来

![image](https://user-images.githubusercontent.com/1082843/28048987-ec3d4a02-6626-11e7-8a0d-8ea6712825b5.png) mock/user.js permission增加 visit就不会报错了

你看下 theme中index.less 样式修改下 就没问题了