提交 cdea8183 authored 作者: 吴强's avatar 吴强

init commit

上级 3e17c6a8
...@@ -25,13 +25,13 @@ const resource_proxy = { ...@@ -25,13 +25,13 @@ const resource_proxy = {
const V4_proxy = { const V4_proxy = {
//"http://106.ihuyi.cn/webservice/sms.php?method=Submit //"http://106.ihuyi.cn/webservice/sms.php?method=Submit
"target": "http://JTWeiXin.free.ngrok.cc", "target": "http://222.73.234.155",
"changeOrigin": true, "changeOrigin": true,
"headers":{ "headers":{
"host":"JTWeiXin.free.ngrok.cc" "host":"222.73.234.155"
}, },
"pathRewrite": { "pathRewrite": {
"^/V4": "V4" "^/V4": "/WPF/JTWebApiService/V4"
} }
}; };
module.exports = { module.exports = {
...@@ -60,10 +60,10 @@ module.exports = { ...@@ -60,10 +60,10 @@ module.exports = {
} }
}, },
"production": { "production": {
publicPath: "/bm/", publicPath: "/bm-wx/",
define: { define: {
contextPath: "/bm", contextPath: "/bm-wx",
apiContextPath: "/bm" apiContextPath: "/bm-wx"
}, },
extraBabelPlugins: [ extraBabelPlugins: [
["import", { libraryName: "antd-mobile", style: "css" }] ["import", { libraryName: "antd-mobile", style: "css" }]
......
...@@ -5,7 +5,11 @@ import './index.css'; ...@@ -5,7 +5,11 @@ import './index.css';
console.log('index.js'); console.log('index.js');
// 1. Initialize // 1. Initialize
const app = dva({ const app = dva({
history: createBrowserHistory(), history: createBrowserHistory({
}),
// history: createBrowserHistory({
// basename: '/bm-wx',
// }),
}); });
// 2. Plugins // 2. Plugins
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论