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)
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue