一、在express項目中安裝中間件npm install --save connect-history-api-fallback
二、在app.js中引用中間件
var history = require('connect-history-api-fallback');
app.use(history());
一、在express項目中安裝中間件npm install --save connect-history-api-fallback
二、在app.js中引用中間件
var history = require('connect-history-api-fallback');
app.use(history());