agilebuilder-ui 1.0.73 → 1.0.74-tmp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/api/sso-service.js
CHANGED
|
@@ -61,6 +61,7 @@ function logout() {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
function getCurrentUserPermissionsBySystem(loginName, systemCode) {
|
|
64
|
+
console.log('getCurrentUserPermissionsBySystem----loginName=', loginName, isMobileBrowser())
|
|
64
65
|
if(isMobileBrowser()){
|
|
65
66
|
return getCurrentUserMobilePermissions(loginName)
|
|
66
67
|
} else {
|
|
@@ -220,6 +221,8 @@ function getDevPlatformPermissions(roleCodes) {
|
|
|
220
221
|
|
|
221
222
|
|
|
222
223
|
function getCurrentUserMobilePermissions (loginName) {
|
|
224
|
+
|
|
225
|
+
console.log('getCurrentUserMobilePermissions----loginName=', loginName, 'window.$vueApp.config.globalProperties.baseAPI=', window.$vueApp.config.globalProperties.baseAPI)
|
|
223
226
|
return request.get(window.$vueApp.config.globalProperties.baseAPI + '/sso/current-users/mobile-permissions?loginName=' + encodeURI(loginName) + '&_t=' + new Date().getTime())
|
|
224
227
|
}
|
|
225
228
|
|
|
@@ -81,6 +81,7 @@ const user = {
|
|
|
81
81
|
},
|
|
82
82
|
// 登录
|
|
83
83
|
loginWithValidateCode({ commit }, userInfo) {
|
|
84
|
+
console.log('loginWithValidateCode----userInfo=', userInfo)
|
|
84
85
|
const username = userInfo.username.trim()
|
|
85
86
|
return new Promise((resolve, reject) => {
|
|
86
87
|
ssoService
|
|
@@ -92,6 +93,7 @@ const user = {
|
|
|
92
93
|
userInfo.imageCodeKey
|
|
93
94
|
)
|
|
94
95
|
.then((data) => {
|
|
96
|
+
console.log('loginWithValidateCode2222----data=', data)
|
|
95
97
|
// const data = response.data
|
|
96
98
|
setToken(data.jwt)
|
|
97
99
|
setLanguage(data.language)
|