diff --git a/pages/login/loginSms.vue b/pages/login/loginSms.vue index 10be3d6..ba88a59 100644 --- a/pages/login/loginSms.vue +++ b/pages/login/loginSms.vue @@ -131,7 +131,7 @@ } this.appuser.type = 0 request({ - url: '/loginApp', + url: '/system/auth/loginApp', method: 'post', data: this.appuser }).then((res) => { diff --git a/utils/request.js b/utils/request.js index a6176ec..0154bd7 100644 --- a/utils/request.js +++ b/utils/request.js @@ -17,6 +17,7 @@ const request = config => { // 是否需要设置 token const isToken = (config.headers || {}).isToken === false config.header = config.header || {} + config.header['Tenant-Id'] = '1' if (getToken() && !isToken) { config.header['Authorization'] = 'Bearer ' + getToken() }