mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-31 13:10:18 +08:00
23 lines
591 B
Vue
23 lines
591 B
Vue
<script setup>
|
|
import { api } from '../../api'
|
|
import MailBox from '../../components/MailBox.vue';
|
|
|
|
const fetchMailUnknowData = async (limit, offset) => {
|
|
return await api.fetch(
|
|
`/admin/mails_unknow`
|
|
+ `?limit=${limit}`
|
|
+ `&offset=${offset}`
|
|
);
|
|
}
|
|
|
|
const deleteMail = async (curMailId) => {
|
|
await api.fetch(`/admin/mails/${curMailId}`, { method: 'DELETE' });
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div style="margin-top: 10px;">
|
|
<MailBox :enableUserDeleteEmail="true" :fetchMailData="fetchMailUnknowData" :deleteMail="deleteMail" />
|
|
</div>
|
|
</template>
|