chore: use function statements everywhere
This commit is contained in:
parent
af6385bc60
commit
ca330fe63b
1 changed files with 3 additions and 2 deletions
|
@ -99,13 +99,14 @@ const isLocalUser = computed(() => store.state.auth.info?.isLocalUser)
|
||||||
const username = computed(() => store.state.auth.info?.username)
|
const username = computed(() => store.state.auth.info?.username)
|
||||||
|
|
||||||
const newToken = ref(null)
|
const newToken = ref(null)
|
||||||
const createToken = async () => {
|
|
||||||
|
async function createToken() {
|
||||||
const r = await service.create({})
|
const r = await service.create({})
|
||||||
tokens.value.push(r)
|
tokens.value.push(r)
|
||||||
newToken.value = r
|
newToken.value = r
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteToken = async (token: CaldavTokenModel) => {
|
async function deleteToken(token: CaldavTokenModel) {
|
||||||
const r = await service.delete(token)
|
const r = await service.delete(token)
|
||||||
success(r)
|
success(r)
|
||||||
const i = tokens.value.findIndex(v => v.id === token.id)
|
const i = tokens.value.findIndex(v => v.id === token.id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue