chore: directly use newToken.value

This commit is contained in:
kolaente 2021-12-26 11:54:27 +01:00
parent b9fa08116d
commit 343be4d5d6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -101,9 +101,8 @@ const username = computed(() => store.state.auth.info?.username)
const newToken = ref(null) const newToken = ref(null)
async function createToken() { async function createToken() {
const r = await service.create({}) newToken.value = await service.create({})
tokens.value.push(r) tokens.value.push(newToken.value)
newToken.value = r
} }
async function deleteToken(token: CaldavTokenModel) { async function deleteToken(token: CaldavTokenModel) {