Skip to content

Commit

Permalink
修复client_credentials模式下rawjson非正常返回时报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Laceyoo committed Dec 1, 2023
1 parent 21b66a1 commit d478017
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function handleGetTokenByClient() {
fetchACTokenByClient(dataObject).then(({code, msg, data}) => {
if(code === 0){
const {request, response, rawjson, example} = data;
const {access_token} = rawjson;
const {access_token} = rawjson || {};
currentToken.value = access_token??"Uncertain";
s3CurrentToken.value = access_token??"Uncertain";
toClipboard(access_token).finally(() => {
Expand Down

0 comments on commit d478017

Please sign in to comment.