|
@@ -2,7 +2,8 @@ const path = require('path');
|
|
|
|
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
|
|
|
|
-const proxyTarget = process.env.NODE_ENV === 'local' ? 'http://api.pt.huaml.com' : 'http://api.pt.huaml.com';
|
|
|
|
|
|
|
+//http和https切换请修改这里,修改后需要重新运行npm run serve shish 2021.4.12
|
|
|
|
|
+const proxyTarget = process.env.NODE_ENV === 'local' ? 'https://api.pt.huaml.com' : 'https://api.pt.huaml.com';
|
|
|
|
|
|
|
|
function resolve(dir) {
|
|
function resolve(dir) {
|
|
|
return path.join(__dirname, dir);
|
|
return path.join(__dirname, dir);
|