feat(jd-order): 移除登录检查并优化 cookie 管理
- 移除了 cookie 管理页面中的登录 token 检查逻辑 - 清理了未使用的导入模块和类型定义 - 简化了 cookie 添加按钮的显示逻辑 - 优化了组件导入结构,提升代码可读性
This commit is contained in:
@@ -56,12 +56,7 @@
|
||||
<a-divider style="margin-top: 0" />
|
||||
<a-row style="margin-bottom: 16px">
|
||||
<a-space>
|
||||
<a-button
|
||||
v-if="checkTokenFromLogin()"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showAddModal()"
|
||||
>
|
||||
<a-button type="primary" size="small" @click="showAddModal()">
|
||||
<template #icon>
|
||||
<icon-plus />
|
||||
</template>
|
||||
@@ -174,12 +169,8 @@ import { Message } from '@arco-design/web-vue';
|
||||
import type { TableColumnData } from '@arco-design/web-vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { checkTokenFromLogin } from '@/utils/auth';
|
||||
import { jdCookieClient } from '@/api';
|
||||
import type {
|
||||
KamiApiJdCookieV1ListAccountRes,
|
||||
KamiApiJdCookieV1CookieAccountInfo
|
||||
} from '@/api/generated';
|
||||
import type { KamiApiJdCookieV1CookieAccountInfo } from '@/api/generated';
|
||||
import CookieModal from './components/cookie-modal.vue';
|
||||
import CookieDetail from './components/cookie-detail.vue';
|
||||
import CookieHistoryDrawer from './components/cookie-history-drawer.vue';
|
||||
|
||||
Reference in New Issue
Block a user