ming 3 лет назад
Родитель
Сommit
4d716b3431
100 измененных файлов с 23 добавлено и 8622 удалено
  1. 0 4
      .history/.env_20210715142421.development
  2. 0 4
      .history/.env_20211209144213.development
  3. 0 4
      .history/.env_20211209144220.development
  4. 0 4
      .history/.env_20211209144221.development
  5. 0 29
      .history/public/static/config_20210723174527.js
  6. 0 29
      .history/public/static/config_20211208161136.js
  7. 0 29
      .history/public/static/config_20211208161208.js
  8. 0 29
      .history/public/static/config_20211208161932.js
  9. 0 29
      .history/public/static/config_20211208161941.js
  10. 0 67
      .history/src/main_20210803095441.js
  11. 0 68
      .history/src/main_20211209142423.js
  12. 0 68
      .history/src/main_20211209142558.js
  13. 0 68
      .history/src/main_20211209142601.js
  14. 0 69
      .history/src/main_20211209142638.js
  15. 0 69
      .history/src/main_20211209142958.js
  16. 0 69
      .history/src/main_20211209143017.js
  17. 0 69
      .history/src/main_20211209143610.js
  18. 0 111
      .history/src/utils/request_20210729181608.js
  19. 0 111
      .history/src/utils/request_20211208164559.js
  20. 0 111
      .history/src/utils/request_20211208165117.js
  21. 0 111
      .history/src/utils/request_20211208170148.js
  22. 0 111
      .history/src/utils/request_20211208174447.js
  23. 0 111
      .history/src/utils/request_20211208174749.js
  24. 0 111
      .history/src/utils/request_20211208174755.js
  25. 0 111
      .history/src/utils/request_20211208174807.js
  26. 0 111
      .history/src/utils/request_20211208174812.js
  27. 0 111
      .history/src/utils/request_20211208174949.js
  28. 0 111
      .history/src/utils/request_20211208175056.js
  29. 0 111
      .history/src/utils/request_20211208175230.js
  30. 0 111
      .history/src/utils/request_20211208175307.js
  31. 0 111
      .history/src/utils/request_20211208175452.js
  32. 0 111
      .history/src/utils/request_20211208175510.js
  33. 0 111
      .history/src/utils/request_20211208175654.js
  34. 0 117
      .history/src/utils/request_20211208175750.js
  35. 0 117
      .history/src/utils/request_20211208175758.js
  36. 0 117
      .history/src/utils/request_20211208175840.js
  37. 0 117
      .history/src/utils/request_20211208180037.js
  38. 0 117
      .history/src/utils/request_20211208180833.js
  39. 0 117
      .history/src/utils/request_20211208180844.js
  40. 0 117
      .history/src/utils/request_20211209112916.js
  41. 0 117
      .history/src/utils/request_20211209113336.js
  42. 0 117
      .history/src/utils/request_20211209113831.js
  43. 0 117
      .history/src/utils/request_20211209114028.js
  44. 0 117
      .history/src/utils/request_20211209114033.js
  45. 0 117
      .history/src/utils/request_20211209114431.js
  46. 0 117
      .history/src/utils/request_20211209131131.js
  47. 0 117
      .history/src/utils/request_20211209131246.js
  48. 0 117
      .history/src/utils/request_20211209131254.js
  49. 0 117
      .history/src/utils/request_20211209131258.js
  50. 0 117
      .history/src/utils/request_20211209131412.js
  51. 0 117
      .history/src/utils/request_20211209131458.js
  52. 0 117
      .history/src/utils/request_20211209131545.js
  53. 0 117
      .history/src/utils/request_20211209131551.js
  54. 0 117
      .history/src/utils/request_20211209131556.js
  55. 0 117
      .history/src/utils/request_20211209131854.js
  56. 0 118
      .history/src/utils/request_20211209140352.js
  57. 0 118
      .history/src/utils/request_20211209140402.js
  58. 0 118
      .history/src/utils/request_20211209140415.js
  59. 0 123
      .history/src/utils/request_20211209140937.js
  60. 0 123
      .history/src/utils/request_20211209141044.js
  61. 0 124
      .history/src/utils/request_20211209141102.js
  62. 0 121
      .history/src/utils/request_20211209141107.js
  63. 0 127
      .history/src/utils/request_20211209141228.js
  64. 0 127
      .history/src/utils/request_20211209141249.js
  65. 0 121
      .history/src/utils/request_20211209141304.js
  66. 0 129
      .history/src/utils/request_20211209141523.js
  67. 0 129
      .history/src/utils/request_20211209141547.js
  68. 0 130
      .history/src/utils/request_20211209141711.js
  69. 0 119
      .history/src/utils/request_20211209141743.js
  70. 0 121
      .history/src/utils/request_20211209141838.js
  71. 0 121
      .history/src/utils/request_20211209141851.js
  72. 0 121
      .history/src/utils/request_20211209143032.js
  73. 0 121
      .history/src/utils/request_20211209143420.js
  74. 0 121
      .history/src/utils/request_20211209143916.js
  75. 0 121
      .history/src/utils/request_20211209143933.js
  76. 0 120
      .history/src/utils/request_20211209144029.js
  77. 0 120
      .history/src/utils/request_20211209144203.js
  78. 0 53
      .history/vue.config_20210729162857.js
  79. 0 54
      .history/vue.config_20211208162139.js
  80. 0 54
      .history/vue.config_20211208162226.js
  81. 0 54
      .history/vue.config_20211208162242.js
  82. 0 54
      .history/vue.config_20211208162348.js
  83. 0 54
      .history/vue.config_20211208163004.js
  84. 0 54
      .history/vue.config_20211208163105.js
  85. 0 54
      .history/vue.config_20211208164034.js
  86. 0 54
      .history/vue.config_20211208164336.js
  87. 0 54
      .history/vue.config_20211208164337.js
  88. 0 54
      .history/vue.config_20211208164338.js
  89. 0 54
      .history/vue.config_20211208164416.js
  90. 0 54
      .history/vue.config_20211208164424.js
  91. 0 54
      .history/vue.config_20211208164426.js
  92. 0 54
      .history/vue.config_20211208164535.js
  93. 0 54
      .history/vue.config_20211208164536.js
  94. BIN
      dist.zip
  95. BIN
      dist7.zip
  96. 0 1
      public/index.html
  97. 3 1
      public/static/config.js
  98. 11 1
      src/main.js
  99. 3 3
      src/utils/auth.js
  100. 6 2
      src/utils/request.js

+ 0 - 4
.history/.env_20210715142421.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='/'

+ 0 - 4
.history/.env_20211209144213.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL=''

+ 0 - 4
.history/.env_20211209144220.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='https://qhome.usky.cn/fivapi/'

+ 0 - 4
.history/.env_20211209144221.development

@@ -1,4 +0,0 @@
-	// development 开发环境
-	NODE_ENV='development'
-	// 下面的为接口地址。此处/api是我经过webpack设置跨域代理之后的地址
-	VUE_APP_BASE_URL='https://qhome.usky.cn/fivapi/'

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

@@ -1,29 +0,0 @@
-// 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`

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

@@ -1,29 +0,0 @@
-// 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`

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

@@ -1,29 +0,0 @@
-// 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`

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

@@ -1,29 +0,0 @@
-// 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`

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

@@ -1,29 +0,0 @@
-// 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`

+ 0 - 67
.history/src/main_20210803095441.js

@@ -1,67 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142423.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        sessionStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142558.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 68
.history/src/main_20211209142601.js

@@ -1,68 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209142638.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        sessionStorage.removeItem("userInfo");
-        console.log(localStorage)
-        localStorage.removeItem("assToken");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209142958.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        console.log(localStorage)
-        localStorage.removeItem("assToken");
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209143017.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        console.log(sessionStorage)
-        sessionStorage.removeItem("assToken");
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

+ 0 - 69
.history/src/main_20211209143610.js

@@ -1,69 +0,0 @@
-import { createApp } from 'vue/dist/vue.esm-bundler.js';
-import Antd from 'ant-design-vue';
-import App from './App.vue';
-import 'ant-design-vue/dist/antd.css';
-import UCore from './utils/UCore.js';
-import './assets/css/index.css';
-import router from './router';
-import Vuex from 'vuex'
-import store from './store/index.js';
-import axios from 'axios';
-import ElementPlus from 'element-plus';
-import 'element-plus/lib/theme-chalk/index.css';
-import 'dayjs/locale/zh-cn';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-//引入rem字体配置
-import '@/assets/js/flexible.js';
-//  引入字体样式
-import '@/assets/fonts/font.css';
-import * as echarts from 'echarts'
-import 'echarts/lib/component/tooltip';
-import 'echarts/lib/component/title';
-import 'echarts/lib/component/legend';
-import { ElMessage } from "element-plus";
-import { removeToken } from './utils/auth';
-
-const app = createApp(App);
-
-app.config.globalProperties.$UCore = UCore;
-app.config.globalProperties.$axios = axios;
-
-app.use(router).use(store).use(ElementPlus, { locale }).use(Vuex).use(echarts).use(Antd).mount('#app');
-
-store.commit("getTimeAll");
-
-
-/*路由守卫*/
-router.beforeEach((to, from, next) => {
-    /* 路由发生变化修改页面title */
-    if (to.meta.title) {
-        document.title = to.meta.title
-    }
-
-    //如果目标路由为登陆时,恢复用户原始状态
-    if (to.path === '/') {
-        removeToken()
-        sessionStorage.removeItem("userInfo");
-        document.getElementById('routers').style.display = "none"
-    } else {
-        document.getElementById('routers').style.display = "block"
-    }
-    if (to.path !== '/') {
-        if (sessionStorage.getItem('userInfo') === null) {
-            next({ path: '/' })
-            document.getElementById('routers').style.display = "none"
-            setTimeout(() => {
-                ElMessage.warning({
-                    message: '请登录后重试!',
-                    type: 'warning'
-                });
-            }, 100);
-
-        } else {
-            next();
-        }
-    } else {
-        //路由的next必须存在,否则无法进入下一页
-        next()
-    }
-})

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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/json;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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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/json;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

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

@@ -1,111 +0,0 @@
-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/json;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

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

@@ -1,111 +0,0 @@
-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

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

@@ -1,111 +0,0 @@
-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/json;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

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

@@ -1,111 +0,0 @@
-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

+ 0 - 117
.history/src/utils/request_20211208175750.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211208175758.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211208175840.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211208180037.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211208180833.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211208180844.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209112916.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209113336.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209113831.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209114028.js

@@ -1,117 +0,0 @@
-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/json'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209114033.js

@@ -1,117 +0,0 @@
-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/json;'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209114431.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131131.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131246.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131254.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131258.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = config.data;
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131412.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131458.js

@@ -1,117 +0,0 @@
-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()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131545.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131551.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131556.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.data = qs.stringify(config.data);
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-        // 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

+ 0 - 117
.history/src/utils/request_20211209131854.js

@@ -1,117 +0,0 @@
-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/json;charset=UTF-8'
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // 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

+ 0 - 118
.history/src/utils/request_20211209140352.js

@@ -1,118 +0,0 @@
-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/json;charset=UTF-8',
-            ''
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // 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

+ 0 - 118
.history/src/utils/request_20211209140402.js

@@ -1,118 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken':
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // 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

+ 0 - 118
.history/src/utils/request_20211209140415.js

@@ -1,118 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        )
-            config.data = qs.stringify(config.data);
-        // 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

+ 0 - 123
.history/src/utils/request_20211209140937.js

@@ -1,123 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        } else {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-
-        }
-
-        // 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

+ 0 - 123
.history/src/utils/request_20211209141044.js

@@ -1,123 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        } else {
-            // config.headers['accessToken'] = localStorage.getItem('assToken')
-
-        }
-
-        // 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

+ 0 - 124
.history/src/utils/request_20211209141102.js

@@ -1,124 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        } else {
-
-
-        }
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209141107.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // 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

+ 0 - 127
.history/src/utils/request_20211209141228.js

@@ -1,127 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // 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

+ 0 - 127
.history/src/utils/request_20211209141249.js

@@ -1,127 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        if (
-
-            config.headers['Content-Type'] !==
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] = localStorage.getItem('assToken')
-        }
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209141304.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 129
.history/src/utils/request_20211209141523.js

@@ -1,129 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 129
.history/src/utils/request_20211209141547.js

@@ -1,129 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/json'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 130
.history/src/utils/request_20211209141711.js

@@ -1,130 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-        if (
-            config.headers['Content-Type'] !=
-            'application/json;charset=UTF-8'
-        ) {
-            config.headers['accessToken'] ===
-                localStorage.getItem('assToken')
-
-        }
-
-
-        // 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

+ 0 - 119
.history/src/utils/request_20211209141743.js

@@ -1,119 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-        // 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

+ 0 - 121
.history/src/utils/request_20211209141838.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209141851.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': localStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209143032.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': sessionStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.token = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209143420.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': sessionStorage.getItem('assToken')
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209143916.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            'accessToken': getToken()
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        // config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 121
.history/src/utils/request_20211209143933.js

@@ -1,121 +0,0 @@
-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/json;charset=UTF-8',
-            // 'accessToken': getToken()
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 120
.history/src/utils/request_20211209144029.js

@@ -1,120 +0,0 @@
-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/json;charset=UTF-8',
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

+ 0 - 120
.history/src/utils/request_20211209144203.js

@@ -1,120 +0,0 @@
-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/json;charset=UTF-8',
-        },
-    })
-    // request interceptor
-service.interceptors.request.use(
-    config => {
-
-        config.headers.accessToken = getToken()
-
-        if (
-            config.data &&
-            config.headers['Content-Type'] ===
-            'application/x-www-form-urlencoded;charset=UTF-8'
-        ) {
-            config.data = qs.stringify(config.data);
-        }
-
-
-        // 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

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

@@ -1,53 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    // }
-}

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

@@ -1,54 +0,0 @@
-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'
-    }
-}

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

@@ -1,54 +0,0 @@
-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'
-    }
-}

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

@@ -1,54 +0,0 @@
-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'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    // }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}

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

@@ -1,54 +0,0 @@
-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/'
-    }
-}



+ 0 - 1
public/index.html

@@ -5,7 +5,6 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <script type="text/javascript" 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>

+ 3 - 1
public/static/config.js

@@ -3,7 +3,9 @@ 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.baseUrl = "http://172.16.120.104:8010/" //杨强本地
+
+// PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
 PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
 
 // 本地json文件请求路径

+ 11 - 1
src/main.js

@@ -21,7 +21,7 @@ import 'echarts/lib/component/tooltip';
 import 'echarts/lib/component/title';
 import 'echarts/lib/component/legend';
 // import { ElMessage } from "element-plus";
-import { removeToken } from './utils/auth';
+import { removeToken, getToken } from './utils/auth';
 
 const app = createApp(App);
 
@@ -40,6 +40,15 @@ router.beforeEach((to, from, next) => {
         document.title = to.meta.title
     }
 
+    const hasToken = getToken()
+    hasToken
+    alert(hasToken)
+    if (!hasToken) {
+        alert(1)
+            // next({ path: '/' })
+    }
+
+
     //如果目标路由为登陆时,恢复用户原始状态
     if (to.path === '/') {
         removeToken()
@@ -61,6 +70,7 @@ router.beforeEach((to, from, next) => {
 
         } else {
             next();
+
         }
     } else {
         //路由的next必须存在,否则无法进入下一页

+ 3 - 3
src/utils/auth.js

@@ -3,13 +3,13 @@ import Cookies from 'js-cookie'
 const TokenKey = 'vue_admin_template_token'
 
 export function getToken() {
-  return Cookies.get(TokenKey)
+    return Cookies.get(TokenKey)
 }
 
 export function setToken(token) {
-  return Cookies.set(TokenKey, token)
+    return Cookies.set(TokenKey, token)
 }
 
 export function removeToken() {
-  return Cookies.remove(TokenKey)
+    return Cookies.remove(TokenKey)
 }

+ 6 - 2
src/utils/request.js

@@ -7,9 +7,13 @@ import qs from 'qs'
 // create an axios instance
 
 let baseURL = window.PLATFROM_CONFIG.baseUrl
+    // alert(process.env.NODE_ENV)
+    // alert(baseURL)
+    // alert(process.env.VUE_APP_BASE_URL)
+
 const service = axios.create({
-        // baseURL: baseURL,
-        baseURL: process.env.NODE_ENV !== "development" ? baseURL : process.env.VUE_APP_BASE_URL,
+        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: {

Некоторые файлы не были показаны из-за большого количества измененных файлов