From ecc5079c63e86dd6caba6753b51ed480022bf89b Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 05 二月 2024 19:19:01 +0800
Subject: [PATCH] 添加api拦截

---
 src/api/common/other.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/api/common/other.js b/src/api/common/other.js
index a909ab6..475a982 100644
--- a/src/api/common/other.js
+++ b/src/api/common/other.js
@@ -50,16 +50,28 @@
 }
 // 鑾峰彇浜у搧鍒楄〃
 export const getProductList = async (data) => {
-  return await axios.get(`/api/product/list`, {
+  return await request({
+    url: "/api/product/list",
+    method: "get",
     params: data
   })
+
+  // return await axios.get(`/api/product/list`, {
+  //   params: data
+  // })
 }
 
 // 鑾峰彇甯歌闂鍒楄〃
 export const getFaqList = async (data) => {
-  return await axios.get(`/api/faq/list`, {
+  return await request({
+    url: "/api/faq/list",
+    method: "get",
     params: data
   })
+
+  // return await axios.get(`/api/faq/list`, {
+  //   params: data
+  // })
 }
 
 // 鍒嗛厤

--
Gitblit v1.8.0