This commit is contained in:
2026-02-11 17:46:22 +03:00
commit eacfacb13b
266 changed files with 51337 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { defineStore } from 'pinia'
import { post } from 'src/services/api'
export const useMailTestStore = defineStore('mailTest', {
state: () => ({
loading: false,
lastResult: null
}),
actions: {
async sendTestMail (to) {
this.loading = true
try {
const data = await post('/test-mail', {
to
})
this.lastResult = data
return true
} catch (err) {
this.lastResult = err
throw err
} finally {
this.loading = false
}
}
}
})