refactor(account): remove token check from button rendering

The `checkTokenFromLogin` function was removed from the button rendering logic and its import, as it was deemed unnecessary for the component's functionality. This simplifies the code and reduces redundancy.
This commit is contained in:
danial
2025-04-07 20:35:18 +08:00
parent 6d5d2e21f1
commit d89dfea58b

View File

@@ -53,7 +53,6 @@
<a-row style="justify-content: space-between; margin-bottom: 16px">
<a-space>
<a-button
v-if="checkTokenFromLogin()"
type="primary"
size="small"
@click="showAddModel({ ...generateFormModel() })"
@@ -164,7 +163,6 @@
<script lang="ts" setup>
import useLoading from '@/hooks/loading';
import { Pagination } from '@/types/global';
import { checkTokenFromLogin } from '@/utils/auth';
import { onMounted, reactive, ref, watchEffect } from 'vue';
import { Notification, TableColumnData } from '@arco-design/web-vue';
import AddModal from './components/add-modal.vue';