From 24a6b3c3028ed77bb079b2ff76a30179c1db6c51 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期一, 29 三月 2021 14:36:12 +0800
Subject: [PATCH] 修复算例管理. tasks为空时列表渲染出错的问题

---
 vue.config.js |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index c5d38e8..ac6fc9b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -56,10 +56,16 @@
     })
 
     // config.module.rule('fonts').use('url-loader').loader('file-loader').options({ name: 'fonts/[name].[ext]', publicPath: '../' })
-
+    //config.module.rule('fonts').use('url-loader').loader('file-loader').options({ name: 'fonts/[name].[ext]', outputPath: '../' })
   },
   productionSourceMap: false,
   filenameHashing: false,
+  pwa: {
+    iconPaths: {
+      favicon32: 'favicon.ico',
+      favicon16: 'favicon.ico'
+    }
+  },
   devServer: {
     proxy: {
       '/track': {
@@ -68,12 +74,24 @@
         changeOrigin: true,
       },
       '/ws': {
-        target: 'http://192.168.20.10:7003',
-        // ws: true,
+        target: 'http://192.168.21.189:7003',
+        ws: true,
         changeOrigin: true,
       },
+      "/data/api-v/app/findAllApp": {
+        // target: '/',
+        target: 'http://localhost:8080/',
+        changeOrigin: true,
+        pathRewrite: {
+          '^/data/api-v/app/findAllApp': 'apps.json'
+        }
+      },
+      "/api-c": {
+        target: 'http://192.168.20.113:8004',
+        changeOrigin: true
+      },
       "/api-v": {
-        target: 'http://192.168.20.10:8000',
+        target: 'http://192.168.20.189:8888',
         changeOrigin: true
       },
       "/api-f": {
@@ -87,15 +105,15 @@
         changeOrigin: true
       },
       "/api-u": {
-        target: 'http://192.168.20.10:8000',
+        target: 'http://192.168.20.189:8888',
         changeOrigin: true
       },
       "/httpImage": {
-        target: 'http://192.168.20.10:7003',
+        target: 'http://192.168.20.189:7003',
         changeOrigin: true, //寮�鍚唬鐞�
       },
       "/files": {
-        target: 'http://192.168.20.10:7003',
+        target: 'http://192.168.20.189:7003',
         changeOrigin: true, //寮�鍚唬鐞�
       }
     }

--
Gitblit v1.8.0