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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user