diff --git a/config/index.js b/config/index.js index a44a9c93..f7b4b6dd 100644 --- a/config/index.js +++ b/config/index.js @@ -13,7 +13,7 @@ module.exports = { "/api": { // 请求的目标主机 //target: 'http://116.255.223.226:8081/nsgk_test/', - target: 'http://localhost:8080/', + target: 'http://218.59.175.43:8083/nsgk_wulanhaote/', //target: 'http://192.168.0.107:8080/', changeOrigin: true, pathRewrite: { diff --git a/package-lock.json b/package-lock.json index 71cde541..ea57fbd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4281,7 +4281,7 @@ "fastclick": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/fastclick/-/fastclick-1.0.6.tgz", - "integrity": "sha512-cXyDBT4g0uWl/Xe75QspBDAgAWQ0lkPi/zgp6YFEUHj6WV6VIZl7R6TiDZhdOVU3W4ehp/8tG61Jev1jit+ztQ==", + "integrity": "sha1-FhYlsnsaWAZAWTa9qaLBkm0Gvmo=", "dev": true }, "fastparse": { @@ -4436,7 +4436,7 @@ "font-awesome.css": { "version": "4.7.2", "resolved": "https://registry.npmjs.org/font-awesome.css/-/font-awesome.css-4.7.2.tgz", - "integrity": "sha512-FIyRbig4PDY15NGzejM3b8OQ/lWvId8PHnE4CnuDtc8/YYs07cvnqLCyfvIJPwJl5SA/Rq+9jAe9W+Fr1pv0DA==" + "integrity": "sha1-B1pCARQo8gJyVO9phgx1ergWyVI=" }, "for-in": { "version": "1.0.2", @@ -12350,7 +12350,7 @@ "vue-html5-editor": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/vue-html5-editor/-/vue-html5-editor-1.1.1.tgz", - "integrity": "sha512-Ckmb8djta+XQMUQaxRcCUNBXEzjPF5p6c2nQ5ICcIuR8eYz4b0HAGzXlSDfL3ZxkrVHO2Hx0VrUORLu2Lwem4g==", + "integrity": "sha1-WRAhCoMNjI00eaHx/shHMZKqA7M=", "dev": true }, "vue-lazyload": { diff --git a/src/api/login/index.js b/src/api/login/index.js index a82d8ed8..3876903d 100644 --- a/src/api/login/index.js +++ b/src/api/login/index.js @@ -1,7 +1,4 @@ import request from '@/utils/request' -import { encrypt } from '@/utils/jsencrypt' // 公钥,私钥都声明在里面 - -const VUE_APP_ENABLE_SECRET = true; // 登录账密凭据加密 // 登录方法 export function login(username, password, code, uuid) { @@ -11,11 +8,6 @@ export function login(username, password, code, uuid) { code, uuid } - if(VUE_APP_ENABLE_SECRET) - { - data.username = encrypt(username); - data.password = encrypt(password); - } return request({ url: '/login', method: 'post',