From d1ae9c508b32dffb8bffa5dd3080bbdfe003fc9a Mon Sep 17 00:00:00 2001 From: mac Date: Mon, 30 Sep 2024 13:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0visa=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 3 +++ src/pages/visa/index.tsx | 28 ++++++++++++++++++++++++++++ src/route/routes.ts | 11 ++++++++++- src/utils/axios.ts | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/pages/visa/index.tsx diff --git a/src/api/index.ts b/src/api/index.ts index 57986d2..9114cd5 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -54,5 +54,8 @@ export default { }, delete_new_message(params: object) { return $axios.post('/admin/delBuzzNewsMessage', params) + }, + get_visa_list(params: object) { + return $axios.post('/admin/visaList', params) } } diff --git a/src/pages/visa/index.tsx b/src/pages/visa/index.tsx new file mode 100644 index 0000000..8413bac --- /dev/null +++ b/src/pages/visa/index.tsx @@ -0,0 +1,28 @@ +import api from "@/api" +import MyTable from "@/components/MyTable" +import React from "react" + +const Visa = () => { + + const columns = [ + { + title: '名称', + dataIndex: 'name' + }, + { + title: 'ID', + dataIndex: 'public_key' + }, + ] + + return ( +
+ +
+ ) +} + +export default Visa \ No newline at end of file diff --git a/src/route/routes.ts b/src/route/routes.ts index 5c76d1f..f57f20e 100644 --- a/src/route/routes.ts +++ b/src/route/routes.ts @@ -3,6 +3,7 @@ import Swiper from "@/pages/swiper" import System from "@/pages/notify/system" import { HomeOutlined, SolutionOutlined } from "@ant-design/icons" import BUZZUPNews from "@/pages/notify/news" +import Visa from "@/pages/visa" const routes = [ { @@ -41,7 +42,15 @@ const routes = [ component: BUZZUPNews, routes: [] }, - + { + path: '/visa', + name: 'Visa卡申请列表', + exact: true, + key: 'visa', + icon: SolutionOutlined, + component: Visa, + routes: [] + }, ] diff --git a/src/utils/axios.ts b/src/utils/axios.ts index a3b5d3d..049d861 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -13,7 +13,7 @@ interface AxiosConfig { export const getBaseUrl = () => { // return `http://192.168.124.20:8008/api/v1` - return `https://apk.hippoim.us/api/v1` + return `https://apk.buzz-up.io/api/v1` } const config: AxiosConfig = {