소스 검색

修改baseurl

ming 3 년 전
부모
커밋
9bb6c4dfe2
31개의 변경된 파일1517개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 0
      .history/dist/index_20211208163216.html
  2. 50 0
      .history/dist/index_20211208163404.html
  3. 29 0
      .history/public/static/config_20210723174527.js
  4. 29 0
      .history/public/static/config_20211208161136.js
  5. 29 0
      .history/public/static/config_20211208161208.js
  6. 29 0
      .history/public/static/config_20211208161932.js
  7. 29 0
      .history/public/static/config_20211208161941.js
  8. 111 0
      .history/src/utils/request_20210729181608.js
  9. 111 0
      .history/src/utils/request_20211208164559.js
  10. 111 0
      .history/src/utils/request_20211208165117.js
  11. 111 0
      .history/src/utils/request_20211208170148.js
  12. 53 0
      .history/vue.config_20210729162857.js
  13. 54 0
      .history/vue.config_20211208162139.js
  14. 54 0
      .history/vue.config_20211208162226.js
  15. 54 0
      .history/vue.config_20211208162242.js
  16. 54 0
      .history/vue.config_20211208162348.js
  17. 54 0
      .history/vue.config_20211208163004.js
  18. 54 0
      .history/vue.config_20211208163105.js
  19. 54 0
      .history/vue.config_20211208164034.js
  20. 54 0
      .history/vue.config_20211208164336.js
  21. 54 0
      .history/vue.config_20211208164337.js
  22. 54 0
      .history/vue.config_20211208164338.js
  23. 54 0
      .history/vue.config_20211208164416.js
  24. 54 0
      .history/vue.config_20211208164424.js
  25. 54 0
      .history/vue.config_20211208164426.js
  26. 54 0
      .history/vue.config_20211208164535.js
  27. 54 0
      .history/vue.config_20211208164536.js
  28. BIN
      dist.7z
  29. 2 2
      public/static/config.js
  30. 10 10
      src/utils/request.js
  31. 3 2
      vue.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
.history/dist/index_20211208163216.html


+ 50 - 0
.history/dist/index_20211208163404.html

@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="">
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
+    <link rel="icon" href="/vuefiv/favicon.ico">
+    <script src="https://webapi.amap.com/maps?v=1.4.15&key=8e266e1ac2ad2383c7773ff504ac248f"></script>
+    <script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
+    <title>vue-webtopo-svgeditor</title>
+    <link href="/vuefiv/css/chunk-193abfa7.bf1b487f.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-1a12e59e.5c5000b0.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-343b67ea.9c79e271.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-6473d6f2.76cb8e82.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-6979e8ba.3051ef51.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-6a340902.2fcbb280.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-7a7b60f0.73721275.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-9028f93c.6d18b382.css" rel="prefetch">
+    <link href="/vuefiv/css/chunk-9decf180.73fd9542.css" rel="prefetch">
+    <link href="/vuefiv/js/chunk-193abfa7.439084ba.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-1a12e59e.44e404a6.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-2d0c849f.caa7f6d6.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-2d0de01e.629897da.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-2d21dc42.e1d12e58.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-343b67ea.f5a37e84.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-6473d6f2.1b807bef.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-6979e8ba.c5c5ee90.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-6a340902.26e57ae0.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-7a7b60f0.b18bbbec.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-9028f93c.8e82f365.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-9decf180.f7dee73f.js" rel="prefetch">
+    <link href="/vuefiv/js/chunk-e13c709c.66829963.js" rel="prefetch">
+    <link href="/vuefiv/css/app.d1963a80.css" rel="preload" as="style">
+    <link href="/vuefiv/css/chunk-vendors.f77d1bde.css" rel="preload" as="style">
+    <link href="/vuefiv/js/app.45662fa4.js" rel="preload" as="script">
+    <link href="/vuefiv/js/chunk-vendors.1a81e3bb.js" rel="preload" as="script">
+    <link href="/vuefiv/css/chunk-vendors.f77d1bde.css" rel="stylesheet">
+    <link href="/vuefiv/css/app.d1963a80.css" rel="stylesheet">
+</head>
+
+<body><noscript><strong>We're sorry but vue-webtopo-svgeditor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript>
+    <div id="app"></div>
+    <script src="./static/config.js"></script>
+    <script src="/vuefiv/js/chunk-vendors.1a81e3bb.js"></script>
+    <script src="/vuefiv/js/app.45662fa4.js"></script>
+</body>
+
+</html>

+ 29 - 0
.history/public/static/config_20210723174527.js

@@ -0,0 +1,29 @@
+// api 请求路径
+var PLATFROM_CONFIG = {};
+// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
+// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
+
+PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api" //线上
+PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
+
+// 本地json文件请求路径
+PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
+PLATFROM_CONFIG.ione = "/vuefiv/1.json"
+
+
+
+// 当前站点 siteId 信息存储
+// var PLATFROM_SITEID = {};
+// PLATFROM_SITEID.id = 0;
+
+
+//alarming WEBSOCKET
+// let userInfo = window.localStorage.getItem("key");
+// var PLATFROM_WEBSOCKET = {};
+// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+// var PLATFROM_IFRAME = {};
+// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 29 - 0
.history/public/static/config_20211208161136.js

@@ -0,0 +1,29 @@
+// api 请求路径
+var PLATFROM_CONFIG = {};
+// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
+// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
+
+PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/api" //线上
+PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
+
+// 本地json文件请求路径
+PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
+PLATFROM_CONFIG.ione = "/vuefiv/1.json"
+
+
+
+// 当前站点 siteId 信息存储
+// var PLATFROM_SITEID = {};
+// PLATFROM_SITEID.id = 0;
+
+
+//alarming WEBSOCKET
+// let userInfo = window.localStorage.getItem("key");
+// var PLATFROM_WEBSOCKET = {};
+// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+// var PLATFROM_IFRAME = {};
+// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 29 - 0
.history/public/static/config_20211208161208.js

@@ -0,0 +1,29 @@
+// api 请求路径
+var PLATFROM_CONFIG = {};
+// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
+// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
+
+PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api" //线上
+PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
+
+// 本地json文件请求路径
+PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
+PLATFROM_CONFIG.ione = "/vuefiv/1.json"
+
+
+
+// 当前站点 siteId 信息存储
+// var PLATFROM_SITEID = {};
+// PLATFROM_SITEID.id = 0;
+
+
+//alarming WEBSOCKET
+// let userInfo = window.localStorage.getItem("key");
+// var PLATFROM_WEBSOCKET = {};
+// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+// var PLATFROM_IFRAME = {};
+// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 29 - 0
.history/public/static/config_20211208161932.js

@@ -0,0 +1,29 @@
+// api 请求路径
+var PLATFROM_CONFIG = {};
+// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
+// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
+
+PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
+PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
+
+// 本地json文件请求路径
+PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
+PLATFROM_CONFIG.ione = "/vuefiv/1.json"
+
+
+
+// 当前站点 siteId 信息存储
+// var PLATFROM_SITEID = {};
+// PLATFROM_SITEID.id = 0;
+
+
+//alarming WEBSOCKET
+// let userInfo = window.localStorage.getItem("key");
+// var PLATFROM_WEBSOCKET = {};
+// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+// var PLATFROM_IFRAME = {};
+// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 29 - 0
.history/public/static/config_20211208161941.js

@@ -0,0 +1,29 @@
+// api 请求路径
+var PLATFROM_CONFIG = {};
+// PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
+// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
+
+PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
+PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
+
+// 本地json文件请求路径
+PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
+PLATFROM_CONFIG.ione = "/vuefiv/1.json"
+
+
+
+// 当前站点 siteId 信息存储
+// var PLATFROM_SITEID = {};
+// PLATFROM_SITEID.id = 0;
+
+
+//alarming WEBSOCKET
+// let userInfo = window.localStorage.getItem("key");
+// var PLATFROM_WEBSOCKET = {};
+// PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+// var PLATFROM_IFRAME = {};
+// PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 111 - 0
.history/src/utils/request_20210729181608.js

@@ -0,0 +1,111 @@
+import axios from 'axios'
+import { ElMessage } from 'element-plus'
+// import store from '@/store'
+import { getToken } from '@/utils/auth'
+import qs from 'qs'
+
+// create an axios instance
+
+let baseURL = window.PLATFROM_CONFIG.baseUrl
+const service = axios.create({
+    // baseURL: baseURL,
+    baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+    withCredentials: true, // send cookies when cross-domain requests
+    timeout: 5000, // request timeout
+    headers: {
+        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
+    },
+})
+// request interceptor
+service.interceptors.request.use(
+    config => {
+
+        config.data = qs.stringify(config.data);
+        config.headers.token = getToken()
+        // do something before request is sent
+
+        // if (store.getters.token) {
+        //     // let each request carry token
+        //     // ['X-Token'] is a custom headers key
+        //     // please modify it according to the actual situation
+        //     config.headers['X-Token'] = getToken()
+        // }
+
+        if (config.method == 'get') {
+            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
+            let obj_val = '';
+            for (let k in config.data) {
+                obj_val += k + "=" + config.data[k] + "&";
+            }
+            config.url += ext_str + obj_val;
+        }
+        // return config;
+
+        return config
+    },
+    error => {
+        // do something with request error
+        console.log(error) // for debug
+        return Promise.reject(error)
+    }
+)
+
+// response interceptor
+service.interceptors.response.use(
+    /**
+     * If you want to get http information such as headers or status
+     * Please return  response => response
+     */
+
+    /**
+     * Determine the request status by custom code
+     * Here is just an example
+     * You can also judge the status by HTTP Status Code
+     */
+    response => {
+        const res = response.data
+
+        // console.log(res)
+
+
+        return res
+
+        // if the custom code is not 20000, it is judged as an error.
+        // if (res.code !== 200) {
+        //     Message({
+        //         message: res.message || 'Error',
+        //         type: 'error',
+        //         duration: 5 * 1000
+        //     })
+
+        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
+        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
+        //         // to re-login
+        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
+        //             confirmButtonText: 'Re-Login',
+        //             cancelButtonText: 'Cancel',
+        //             type: 'warning'
+        //         }).then(() => {
+        //             store.dispatch('user/resetToken').then(() => {
+        //                 location.reload()
+        //             })
+        //         })
+        //     }
+        //     return Promise.reject(new Error(res.message || 'Error'))
+        // } else {
+        //     return res
+        // }
+    },
+    error => {
+        // console.log('err' + error.response.data.msg) // for debug
+        ElMessage({
+            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
+            type: 'error',
+            duration: 5 * 1000
+        })
+        return Promise.reject(error)
+    }
+
+)
+
+export default service

+ 111 - 0
.history/src/utils/request_20211208164559.js

@@ -0,0 +1,111 @@
+import axios from 'axios'
+import { ElMessage } from 'element-plus'
+// import store from '@/store'
+import { getToken } from '@/utils/auth'
+import qs from 'qs'
+
+// create an axios instance
+
+let baseURL = window.PLATFROM_CONFIG.baseUrl
+const service = axios.create({
+        baseURL: baseURL,
+        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+        withCredentials: true, // send cookies when cross-domain requests
+        timeout: 5000, // request timeout
+        headers: {
+            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
+        },
+    })
+    // request interceptor
+service.interceptors.request.use(
+    config => {
+
+        config.data = qs.stringify(config.data);
+        config.headers.token = getToken()
+            // do something before request is sent
+
+        // if (store.getters.token) {
+        //     // let each request carry token
+        //     // ['X-Token'] is a custom headers key
+        //     // please modify it according to the actual situation
+        //     config.headers['X-Token'] = getToken()
+        // }
+
+        if (config.method == 'get') {
+            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
+            let obj_val = '';
+            for (let k in config.data) {
+                obj_val += k + "=" + config.data[k] + "&";
+            }
+            config.url += ext_str + obj_val;
+        }
+        // return config;
+
+        return config
+    },
+    error => {
+        // do something with request error
+        console.log(error) // for debug
+        return Promise.reject(error)
+    }
+)
+
+// response interceptor
+service.interceptors.response.use(
+    /**
+     * If you want to get http information such as headers or status
+     * Please return  response => response
+     */
+
+    /**
+     * Determine the request status by custom code
+     * Here is just an example
+     * You can also judge the status by HTTP Status Code
+     */
+    response => {
+        const res = response.data
+
+        // console.log(res)
+
+
+        return res
+
+        // if the custom code is not 20000, it is judged as an error.
+        // if (res.code !== 200) {
+        //     Message({
+        //         message: res.message || 'Error',
+        //         type: 'error',
+        //         duration: 5 * 1000
+        //     })
+
+        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
+        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
+        //         // to re-login
+        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
+        //             confirmButtonText: 'Re-Login',
+        //             cancelButtonText: 'Cancel',
+        //             type: 'warning'
+        //         }).then(() => {
+        //             store.dispatch('user/resetToken').then(() => {
+        //                 location.reload()
+        //             })
+        //         })
+        //     }
+        //     return Promise.reject(new Error(res.message || 'Error'))
+        // } else {
+        //     return res
+        // }
+    },
+    error => {
+        // console.log('err' + error.response.data.msg) // for debug
+        ElMessage({
+            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
+            type: 'error',
+            duration: 5 * 1000
+        })
+        return Promise.reject(error)
+    }
+
+)
+
+export default service

+ 111 - 0
.history/src/utils/request_20211208165117.js

@@ -0,0 +1,111 @@
+import axios from 'axios'
+import { ElMessage } from 'element-plus'
+// import store from '@/store'
+import { getToken } from '@/utils/auth'
+import qs from 'qs'
+
+// create an axios instance
+
+let baseURL = window.PLATFROM_CONFIG.baseUrl
+const service = axios.create({
+        // baseURL: baseURL,
+        baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+        withCredentials: true, // send cookies when cross-domain requests
+        timeout: 5000, // request timeout
+        headers: {
+            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
+        },
+    })
+    // request interceptor
+service.interceptors.request.use(
+    config => {
+
+        config.data = qs.stringify(config.data);
+        config.headers.token = getToken()
+            // do something before request is sent
+
+        // if (store.getters.token) {
+        //     // let each request carry token
+        //     // ['X-Token'] is a custom headers key
+        //     // please modify it according to the actual situation
+        //     config.headers['X-Token'] = getToken()
+        // }
+
+        if (config.method == 'get') {
+            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
+            let obj_val = '';
+            for (let k in config.data) {
+                obj_val += k + "=" + config.data[k] + "&";
+            }
+            config.url += ext_str + obj_val;
+        }
+        // return config;
+
+        return config
+    },
+    error => {
+        // do something with request error
+        console.log(error) // for debug
+        return Promise.reject(error)
+    }
+)
+
+// response interceptor
+service.interceptors.response.use(
+    /**
+     * If you want to get http information such as headers or status
+     * Please return  response => response
+     */
+
+    /**
+     * Determine the request status by custom code
+     * Here is just an example
+     * You can also judge the status by HTTP Status Code
+     */
+    response => {
+        const res = response.data
+
+        // console.log(res)
+
+
+        return res
+
+        // if the custom code is not 20000, it is judged as an error.
+        // if (res.code !== 200) {
+        //     Message({
+        //         message: res.message || 'Error',
+        //         type: 'error',
+        //         duration: 5 * 1000
+        //     })
+
+        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
+        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
+        //         // to re-login
+        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
+        //             confirmButtonText: 'Re-Login',
+        //             cancelButtonText: 'Cancel',
+        //             type: 'warning'
+        //         }).then(() => {
+        //             store.dispatch('user/resetToken').then(() => {
+        //                 location.reload()
+        //             })
+        //         })
+        //     }
+        //     return Promise.reject(new Error(res.message || 'Error'))
+        // } else {
+        //     return res
+        // }
+    },
+    error => {
+        // console.log('err' + error.response.data.msg) // for debug
+        ElMessage({
+            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
+            type: 'error',
+            duration: 5 * 1000
+        })
+        return Promise.reject(error)
+    }
+
+)
+
+export default service

+ 111 - 0
.history/src/utils/request_20211208170148.js

@@ -0,0 +1,111 @@
+import axios from 'axios'
+import { ElMessage } from 'element-plus'
+// import store from '@/store'
+import { getToken } from '@/utils/auth'
+import qs from 'qs'
+
+// create an axios instance
+
+let baseURL = window.PLATFROM_CONFIG.baseUrl
+const service = axios.create({
+        baseURL: baseURL,
+        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+        withCredentials: true, // send cookies when cross-domain requests
+        timeout: 5000, // request timeout
+        headers: {
+            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
+        },
+    })
+    // request interceptor
+service.interceptors.request.use(
+    config => {
+
+        config.data = qs.stringify(config.data);
+        config.headers.token = getToken()
+            // do something before request is sent
+
+        // if (store.getters.token) {
+        //     // let each request carry token
+        //     // ['X-Token'] is a custom headers key
+        //     // please modify it according to the actual situation
+        //     config.headers['X-Token'] = getToken()
+        // }
+
+        if (config.method == 'get') {
+            let ext_str = config.url.indexOf('?') == -1 ? '?' : '&';
+            let obj_val = '';
+            for (let k in config.data) {
+                obj_val += k + "=" + config.data[k] + "&";
+            }
+            config.url += ext_str + obj_val;
+        }
+        // return config;
+
+        return config
+    },
+    error => {
+        // do something with request error
+        console.log(error) // for debug
+        return Promise.reject(error)
+    }
+)
+
+// response interceptor
+service.interceptors.response.use(
+    /**
+     * If you want to get http information such as headers or status
+     * Please return  response => response
+     */
+
+    /**
+     * Determine the request status by custom code
+     * Here is just an example
+     * You can also judge the status by HTTP Status Code
+     */
+    response => {
+        const res = response.data
+
+        // console.log(res)
+
+
+        return res
+
+        // if the custom code is not 20000, it is judged as an error.
+        // if (res.code !== 200) {
+        //     Message({
+        //         message: res.message || 'Error',
+        //         type: 'error',
+        //         duration: 5 * 1000
+        //     })
+
+        //     // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
+        //     if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
+        //         // to re-login
+        //         MessageBox.confirm('You have been logged out, you can cancel to stay on this page, or log in again', 'Confirm logout', {
+        //             confirmButtonText: 'Re-Login',
+        //             cancelButtonText: 'Cancel',
+        //             type: 'warning'
+        //         }).then(() => {
+        //             store.dispatch('user/resetToken').then(() => {
+        //                 location.reload()
+        //             })
+        //         })
+        //     }
+        //     return Promise.reject(new Error(res.message || 'Error'))
+        // } else {
+        //     return res
+        // }
+    },
+    error => {
+        // console.log('err' + error.response.data.msg) // for debug
+        ElMessage({
+            message: error.response.config.url === '/user/login?' ? error.response.data.msg : error.message,
+            type: 'error',
+            duration: 5 * 1000
+        })
+        return Promise.reject(error)
+    }
+
+)
+
+export default service

+ 53 - 0
.history/vue.config_20210729162857.js

@@ -0,0 +1,53 @@
+const path = require('path')
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://wx.ewoogi.com/api',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }   
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208162139.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://wx.ewoogi.com/api',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        // public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208162226.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://wx.ewoogi.com/api',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208162242.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://wx.ewoogi.com/api',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'https://qhome.usky.cn/fivapi/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208162348.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://wx.ewoogi.com/api',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        // public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208163004.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        // public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208163105.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164034.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    // devServer: {
+    //     proxy: {
+    //         // '/vuefiv/': {
+    //         './': {
+    //             target: 'https://qhome.usky.cn/fivapi',
+    //             ws: false,
+    //             changeOrigin: true,
+    //             pathRewrite: {
+    //                 '^./': './'
+    //             }
+    //         }
+    //     },
+    //     public: 'localhost:8080/vuefiv/'
+    // }
+}

+ 54 - 0
.history/vue.config_20211208164336.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'https://qhome.usky.cn/fivapi'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164337.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'https://qhome.usky.cn/fivapi'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164338.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'https://qhome.usky.cn/fivapi'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164416.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164424.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    // devServer: {
+    //     proxy: {
+    //         // '/vuefiv/': {
+    //         './': {
+    //             target: 'https://qhome.usky.cn/fivapi',
+    //             ws: false,
+    //             changeOrigin: true,
+    //             pathRewrite: {
+    //                 '^./': './'
+    //             }
+    //         }
+    //     },
+    //     public: 'localhost:8080/vuefiv/'
+    // }
+}

+ 54 - 0
.history/vue.config_20211208164426.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164535.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

+ 54 - 0
.history/vue.config_20211208164536.js

@@ -0,0 +1,54 @@
+const path = require('path')
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+// 基本结构
+module.exports = {
+    // 打包后路径错误导致的空白页面问题。
+    publicPath: '/vuefiv/',
+    outputDir: process.env.outputDir,
+    // assetsPublicPath: '/vuefiv/',
+    // assetsDir: 'vuefiv',
+    //      *  分别为生成环境和开发环境配置
+    configureWebpack: config => {
+        if (process.env.NODE_ENV === 'production') {
+            // 为生产环境修改配置...
+            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
+        } else {
+            // 为开发环境修改配置...
+        }
+        Object.assign(config, {
+            externals: {
+                'AMap': 'AMap',
+                'AMapUI': 'AMapUI'
+            },
+            resolve: {
+                extensions: ['.js', '.vue', '.json'],
+                alias: {
+                    '@': resolve('src'),
+                    '~': process.cwd(),
+                    public: resolve('public'),
+                    components: resolve('src/components'),
+                    util: resolve('src/utils'),
+                    store: resolve('src/store'),
+                    router: resolve('src/router')
+                }
+            },
+        })
+    },
+    devServer: {
+        proxy: {
+            // '/vuefiv/': {
+            './': {
+                target: 'https://qhome.usky.cn/fivapi',
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    '^./': './'
+                }
+            }
+        },
+        public: 'localhost:8080/vuefiv/'
+    }
+}

BIN
dist.7z


+ 2 - 2
public/static/config.js

@@ -3,8 +3,8 @@ var PLATFROM_CONFIG = {};
 // PLATFROM_CONFIG.baseUrl = "http://172.16.120.229:8010/" //杨强本地
 // PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/"  //超博本地
 
-PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api" //线上
-PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
+PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
+PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
 
 // 本地json文件请求路径
 PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"

+ 10 - 10
src/utils/request.js

@@ -8,21 +8,21 @@ import qs from 'qs'
 
 let baseURL = window.PLATFROM_CONFIG.baseUrl
 const service = axios.create({
-    // baseURL: baseURL,
-    baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
-    withCredentials: true, // send cookies when cross-domain requests
-    timeout: 5000, // request timeout
-    headers: {
-        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
-    },
-})
-// request interceptor
+        baseURL: baseURL,
+        // baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+        withCredentials: true, // send cookies when cross-domain requests
+        timeout: 5000, // request timeout
+        headers: {
+            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
+        },
+    })
+    // request interceptor
 service.interceptors.request.use(
     config => {
 
         config.data = qs.stringify(config.data);
         config.headers.token = getToken()
-        // do something before request is sent
+            // do something before request is sent
 
         // if (store.getters.token) {
         //     // let each request carry token

+ 3 - 2
vue.config.js

@@ -1,4 +1,5 @@
 const path = require('path')
+
 function resolve(dir) {
     return path.join(__dirname, dir);
 }
@@ -40,13 +41,13 @@ module.exports = {
         proxy: {
             // '/vuefiv/': {
             './': {
-                target: 'https://wx.ewoogi.com/api',
+                target: 'https://qhome.usky.cn/fivapi',
                 ws: false,
                 changeOrigin: true,
                 pathRewrite: {
                     '^./': './'
                 }
-            }   
+            }
         },
         public: 'localhost:8080/vuefiv/'
     }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.