diff --git a/starCloud.js b/starCloud.js index 8eba676..08d961b 100644 --- a/starCloud.js +++ b/starCloud.js @@ -236,7 +236,7 @@ export const useStarCloudStore = defineStore('starCloud', { */ logout(params) { const { uid } = params - if (this.accountInfo.uid === uid) { + if (this.accountInfo?.uid === uid) { this.userInfo = null this.accountInfo = null this.lockInfo = null