From 616c21a62dfb4ea4d4e30dcbd61ee40a0386261c Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Sat, 6 Apr 2024 15:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20axiox=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E5=B0=81=E8=A3=85=E9=85=8D=E7=BD=AE=E4=BB=A3=E7=90=86=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E8=B7=A8=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 8 +++++ src/pages/login/index.vue | 4 ++- src/utils/request.js | 73 +++++++++++++++++++++++++++++++++++++++ vite.config.js | 9 +++++ 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 src/api/login.js create mode 100644 src/utils/request.js diff --git a/src/api/login.js b/src/api/login.js new file mode 100644 index 0000000..34c4da1 --- /dev/null +++ b/src/api/login.js @@ -0,0 +1,8 @@ +import request from "@/utils/request"; +// 统一管理接口 +const API = { + LOGIN_URL: "/api/user", + udaiu: "/user", +}; +export const reqUser = () => request.get(API.LOGIN_URL); +export const reqUser = (data) => request.post(API.LOGIN_URL, data); diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index b0fd3bb..1322084 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -46,6 +46,7 @@