2
0

初始化项目

This commit is contained in:
caiyuchao
2024-11-14 11:06:38 +08:00
parent 988b9e6799
commit 4ffac789e1
320 changed files with 34244 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
import { $t } from '@/locales';
async function logout() {
await fetchCustomBackendError('8888', $t('request.logoutMsg'));
}
async function logoutWithModal() {
await fetchCustomBackendError('7777', $t('request.logoutWithModalMsg'));
}
async function refreshToken() {
await fetchCustomBackendError('9999', $t('request.tokenExpired'));
}
</script>
<template>
<ASpace direction="vertical" :size="16">
<ACard :title="$t('request.logout')" :bordered="false" size="small" class="card-wrapper">
<AButton @click="logout">{{ $t('common.trigger') }}</AButton>
</ACard>
<ACard :title="$t('request.logoutWithModal')" :bordered="false" size="small" class="card-wrapper">
<AButton @click="logoutWithModal">{{ $t('common.trigger') }}</AButton>
</ACard>
<ACard :title="$t('request.refreshToken')" :bordered="false" size="small" class="card-wrapper">
<AButton @click="refreshToken">{{ $t('common.trigger') }}</AButton>
</ACard>
</ASpace>
</template>
<style scoped></style>