Commit 72212345 authored by hangjun83's avatar hangjun83

支持多环境打包配置

parent 5e8b724c
...@@ -3,3 +3,4 @@ VUE_APP_ENV = 'prod' ...@@ -3,3 +3,4 @@ VUE_APP_ENV = 'prod'
VUE_APP_MOCK = false VUE_APP_MOCK = false
BASE_URL= '/adminapi' BASE_URL= '/adminapi'
API_URL= 'http://localhost:8211/' API_URL= 'http://localhost:8211/'
URL= 'http://localhost:8399/'
...@@ -18,7 +18,7 @@ const resolve = dir => { ...@@ -18,7 +18,7 @@ const resolve = dir => {
// iview-admin线上演示打包路径: https://file.iviewui.com/admin-dist/ // iview-admin线上演示打包路径: https://file.iviewui.com/admin-dist/
const BASE_URL = const BASE_URL =
process.env.NODE_ENV === "production" ? "http://localhost:8399/" : "/"; process.env.NODE_ENV === "production" ? process.env.URL : "/";
module.exports = { module.exports = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment