通过config.js配置appKey
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -33,8 +33,8 @@ const useUserStore = defineStore( | ... | @@ -33,8 +33,8 @@ const useUserStore = defineStore( |
| 33 | function getToken(data, state) { | 33 | function getToken(data, state) { |
| 34 | data.platformGuid = "7f16f697aec111ef8656fa163e60becd"; | 34 | data.platformGuid = "7f16f697aec111ef8656fa163e60becd"; |
| 35 | data.userType = 2; | 35 | data.userType = 2; |
| 36 | // data.appKey = '672c2c38e4b0cac8732a6106'; | 36 | data.appKey = '672c2c38e4b0cac8732a6106'; |
| 37 | data.appKey = system.__APP_CONFIG__.appKey; | 37 | // data.appKey = system.__APP_CONFIG__.appKey; |
| 38 | data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/'; | 38 | data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/'; |
| 39 | return getTokenPromise.value = getTokenByCode(data).then((res: any) => { | 39 | return getTokenPromise.value = getTokenByCode(data).then((res: any) => { |
| 40 | getTokenPromise.value = null; | 40 | getTokenPromise.value = null; | ... | ... |
-
Please register or sign in to post a comment