1、在node.js解决
node中 安装插件connect-history-api-fallback
npm install --save connect-history-api-fallback
var history = require('connect-history-api-fallback');
var express = require('express');
var app = express();
app.use(history());
2、后端在Nginx配置
3、后端开发在服务器中写正则来匹配路由配置哪些是后端接口
标签:vue,hash,express,histroy,api,connect,var,fallback,history From: https://www.cnblogs.com/cat-eol/p/17011363.html