Thinkphp5后端+ vue前端页面开发,代码刷新报404错误

thinkphp5开发后端,前端用vue.js开发前端,前端打包的时候用的是history的模式;
把前端代码放到public文件夹下,刷新就报404的错误!

nginx配置文件

location / {
root E:/www/doctorLink/public;
index index.php index.html index.htm;

if (!-e $request_filename){
  rewrite  ^(.*)$  /index.php?s=$1  last;   break;
}
}
THE END