Administrator 2 năm trước cách đây
mục cha
commit
72c383f7ed
2 tập tin đã thay đổi với 7 bổ sung6 xóa
  1. 1 0
      src/main.js
  2. 6 6
      vue.config.js

+ 1 - 0
src/main.js

@@ -28,6 +28,7 @@ import './permission' // permission control
 //DataV动效组件
 import dataV from '@jiaminghi/data-view'
 
+
 // //WebSocket封装方法
 // import * as socketApi from '@/api/socket'
 // Vue.prototype.socketApi = socketApi

+ 6 - 6
vue.config.js

@@ -34,9 +34,9 @@ module.exports = {
     host: '0.0.0.0',
     port: port,
     open: true,
-    https:{
-      cert : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.pem')),
-      key : fs.readFileSync(ssl_path.join(__dirname,'src/ssl/supermap.key'))
+    https: {
+      cert: fs.readFileSync(ssl_path.join(__dirname, 'src/ssl/supermap.pem')),
+      key: fs.readFileSync(ssl_path.join(__dirname, 'src/ssl/supermap.key'))
     },
 
     /**
@@ -52,8 +52,8 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-         target: `https://www.sunyishi.com:3031`,
-         // target: `https://117.78.49.164:3031`,
+        // target: `https://www.sunyishi.com:3031`,
+        target: `https://117.78.49.164:3031`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''
@@ -65,7 +65,7 @@ module.exports = {
   css: {
     loaderOptions: {
       sass: {
-        sassOptions: { outputStyle: 'expanded' }
+        sassOptions: {outputStyle: 'expanded'}
       }
     }
   },