From 71e6a436320fbc483c3411bfbb2f966de84ebbf3 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期四, 25 二月 2021 15:54:01 +0800
Subject: [PATCH] 朔黄添加事件标签弹框,弹窗布局;可视化大屏页面跳转测试

---
 vue.config.js |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index ee4c7aa..254db78 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -12,8 +12,7 @@
     entry: path,
     template: 'public/index.html',
     title: chunk == 'desktop/index' ? 'SmartAI' : chunk,
-    chunks: [chunk_vendor, 'chunk-common', chunk],
-    faviconPath: "favicon.png"
+    chunks: [chunk_vendor, 'chunk-common', chunk]
   }
   if (chunk != 'index') {
     pages[chunk].filename = 'view/' + chunk + '.html'
@@ -61,6 +60,12 @@
   },
   productionSourceMap: false,
   filenameHashing: false,
+  pwa: {
+    iconPaths: {
+      favicon32: 'favicon.ico',
+      favicon16: 'favicon.ico'
+    }
+  },
   devServer: {
     proxy: {
       '/track': {
@@ -73,13 +78,17 @@
         // ws: true,
         changeOrigin: true,
       },
-      "/data/api-v/app/findAllApp": {
-        target: '/',
-        // target: 'http://localhost:8080/',
-        changeOrigin: true,
-        pathRewrite: {
-          '^/data/api-v/app/findAllApp': 'apps.json'
-        }
+      // "/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.10:8004',
+        changeOrigin: true
       },
       "/api-v": {
         target: 'http://192.168.20.10:8000',

--
Gitblit v1.8.0