1
This commit is contained in:
@@ -174,7 +174,8 @@ export default {
|
||||
try {
|
||||
const response = await getKdocsTokenStatus(this.userId)
|
||||
if (response.code === 200) {
|
||||
this.isAuthorized = response.data.hasToken && response.data.isValid
|
||||
// 有 token 即视为已授权;isValid 单独展示(避免 expires_in 缺失时误判未保存)
|
||||
this.isAuthorized = !!response.data.hasToken
|
||||
this.tokenInfo = response.data
|
||||
if (response.data.userId) {
|
||||
this.userId = response.data.userId
|
||||
|
||||
Reference in New Issue
Block a user