fix: always fetch full data (more reliable)

This commit is contained in:
m4ximuel 2021-04-03 17:46:46 +09:00 committed by GitHub
parent 7c7e40d4a5
commit 89cf6ba32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,8 +53,7 @@ export default {
state.authenticated = payload
},
updateMainData: async state => {
const rid = state.rid ? state.rid : undefined
const res = await qbit.getMainData(rid)
const res = await qbit.getMainData(undefined)
// status
state.status = new Status(res.data.server_state, res.data.tags)