From 84dfaf7b7ee6f4fccf5dfe7534c81ab2687a2b07 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期五, 13 十月 2023 17:19:48 +0800 Subject: [PATCH] feat: 所有请求都走拦截器 --- src/api/client/contacts.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/client/contacts.js b/src/api/client/contacts.js index 6ff6f11..3c4932f 100644 --- a/src/api/client/contacts.js +++ b/src/api/client/contacts.js @@ -1,10 +1,11 @@ import request from "@/common/untils/request.js" // 鑱旂郴浜哄垪琛� -export function getContactList() { +export function getContactList(data) { return request({ url: "/api/contact/list", - method: "get" + method: "post", + data }) } // 娣诲姞鑱旂郴浜� @@ -18,8 +19,9 @@ // 鍒犻櫎鑱旂郴浜� export function getDeleteContact(data) { return request({ - url: "/api/contact/delete/" + data.id, - method: "delete" + url: "/api/contact/delete", + method: "delete", + data }) } // 鏇存柊鑱旂郴浜� -- Gitblit v1.8.0