chore: directly use newToken.value
This commit is contained in:
parent
b9fa08116d
commit
343be4d5d6
1 changed files with 2 additions and 3 deletions
|
@ -101,9 +101,8 @@ const username = computed(() => store.state.auth.info?.username)
|
|||
const newToken = ref(null)
|
||||
|
||||
async function createToken() {
|
||||
const r = await service.create({})
|
||||
tokens.value.push(r)
|
||||
newToken.value = r
|
||||
newToken.value = await service.create({})
|
||||
tokens.value.push(newToken.value)
|
||||
}
|
||||
|
||||
async function deleteToken(token: CaldavTokenModel) {
|
||||
|
|
Loading…
Reference in a new issue