标签:open span ons cli str pre size target ali
target: "http://39.105.204.151:3000",/*带理地址*/
1 const proxy = require("http-proxy-middleware") 2 3 4 module.exports = (app) => { 5 app.use("/ajax", proxy({ 6 target: "http://39.105.204.151:3000", 7 changeOrigin: true, 8 pathRewrite: { 9 "^ajax": "" 10 } 11 })) 12 }
标签:open span ons cli str pre size target ali
原文地址:https://www.cnblogs.com/Bree/p/12003698.html