diff --git a/.env.production b/.env.production index c4d0fd7..eef7d99 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/api' +VUE_APP_BASE_API = '/monitorapi' ## 配置 正式接口地址 VUE_APP_URL = "http://120.46.131.15:8111" diff --git a/src/views/zhiwujiance/zhiwujianceList.vue b/src/views/zhiwujiance/zhiwujianceList.vue index 5cba8d7..e1cb030 100644 --- a/src/views/zhiwujiance/zhiwujianceList.vue +++ b/src/views/zhiwujiance/zhiwujianceList.vue @@ -182,7 +182,8 @@ export default { data() { return { // imgUrl: 'http://huirong.ybkjyl.com/1.png', - fileUrl: 'http://huirong.ybkjyl.com/imagesDownload/', + // fileUrl: 'http://huirong.ybkjyl.com/imagesDownload/', + fileUrl: 'http://8.130.39.13:7003/upload/monitor/', wanhao_Chart: wanhao_Chart, // 1.1 weixiu_Chart: weixiu_Chart, sunhai_Chart: sunhai_Chart, diff --git a/vue.config.js b/vue.config.js index 2cb6d66..35f96af 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,7 +24,7 @@ module.exports = { *在大多数情况下,请使用“/”!!! *详细信息:https://cli.vuejs.org/config/#publicpath */ - publicPath: process.env.NODE_ENV === 'production' ? '/' : '/', + publicPath: process.env.NODE_ENV === 'production' ? '/monitor/' : '/', outputDir: 'monitor-ui', assetsDir: 'static', lintOnSave: process.env.NODE_ENV === 'development',