Selaa lähdekoodia

修改账号增加判断

wy 3 vuotta sitten
vanhempi
sitoutus
6c3e62dd6a

+ 2 - 2
src/api/platform/org/employee.js

@@ -1,6 +1,6 @@
 import request from '@/utils/request'
 import { ORG_URL } from '@/api/baseUrl'
-import { PLATFORM_BASE_URL } from '@/api/baseUrl'
+import { BUSINESS_BASE_URL } from '@/api/baseUrl'
 /**
  * 查询列表数据
  * @param {*} params
@@ -44,7 +44,7 @@ export function create(data) {
  */
  export function upEmployee(data) {
     return request({
-      url: PLATFORM_BASE_URL() + '/sys/universal/upEmployee',
+      url: BUSINESS_BASE_URL() + '/sys/universal/upEmployee',
       method: 'post',
       data
     })

+ 1 - 2
src/views/platform/org/employee/edit/index.vue

@@ -229,10 +229,9 @@
                     id: this.employee.id,
                     account: this.employee.account
                 }
-                console.log(params)
                 upEmployee(params).then(res => {
                     if(res.state == 200){
-                        const data = res.data
+                        const data = res.variables.data
                         if(data == "Y"){
                             this.saveData()
                         }else{