From 77536cfa95b1e3c5e60f94dce3a53aa2e93f121a Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123 <819527061@qq.com> Date: 星期三, 14 九月 2022 17:35:54 +0800 Subject: [PATCH] echarts添加显示隐藏按钮 --- config/index.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/index.js b/config/index.js index 93bd14c..6eb2c4a 100644 --- a/config/index.js +++ b/config/index.js @@ -3,6 +3,8 @@ // see http://vuejs-templates.github.io/webpack for documentation. const path = require("path"); +// let url = 'http://192.168.0.140:8081' +let url = 'http://39.96.92.240:9090' module.exports = { dev: { @@ -10,17 +12,17 @@ assetsSubDirectory: "static", // 缂栬瘧杈撳嚭鐨勪簩绾х洰褰� assetsPublicPath: "/", // 缂栬瘧鍙戝竷鐨勬牴鐩綍锛屽彲閰嶇疆涓鸿祫婧愭湇鍔″櫒鍩熷悕鎴� CDN 鍩熷悕 proxyTable: { - "/api": { - target: "", + "/": { + target: url, changeOrigin: true, pathRewrite: { - "^/api": "" + "^/": "" } } }, // Various Dev Server settings - host: "localhost", // can be overwritten by process.env.HOST + host: "0.0.0.0", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, -- Gitblit v1.9.1