Browse Source

登录接口变更

李文 4 years ago
parent
commit
e83ea61f9d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/mock/index.js
  2. 1 1
      src/views/pages/login.vue

+ 1 - 1
src/mock/index.js

@@ -11,11 +11,11 @@ import * as sysUser from './modules/sys-user'
 // tips
 // 1. 开启/关闭[业务模块]拦截, 通过调用fnCreate方法[isOpen参数]设置.
 // 2. 开启/关闭[业务模块中某个请求]拦截, 通过函数返回对象中的[isOpen属性]设置.
-fnCreate(common, false)
 fnCreate(jobSchedule, true)
 fnCreate(oss, true)
 fnCreate(sysConfig, true)
 fnCreate(sysLog, true)
+fnCreate(common, false)
 fnCreate(sysMenu, false)
 fnCreate(sysRole, false)
 fnCreate(sysUser, false)

+ 1 - 1
src/views/pages/login.vue

@@ -97,7 +97,7 @@ export default {
         if (!valid) {
           return false
         }
-        this.$http.post('/login', this.dataForm).then(({ data: res }) => {
+        this.$http.post('/idaas/sso/login', this.dataForm).then(({ data: res }) => {
           if (res.code !== 0) {
             // this.getCaptcha()
             return this.$message.error(res.msg)