From 3286b2af0a85f46644bc09cfb16171f4d399890d Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 17:13:25 +0800
Subject: [PATCH] 跟换所有页面的接口前缀

---
 src/api/productManage/product.js |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/api/productManage/product.js b/src/api/productManage/product.js
index 4c60183..fb8638d 100644
--- a/src/api/productManage/product.js
+++ b/src/api/productManage/product.js
@@ -3,13 +3,13 @@
 
 // 浜у搧鍒楄〃
 // export const getProductList = async (data) => {
-//   return await axios.get(`/api/p/getProductList`, {
+//   return await axios.get(`/api-srm/p/getProductList`, {
 //     params: data
 //   })
 // }
 export function getProductList(data) {
   return request({
-    url: "/api/p/getProductList",
+    url: "/api-srm/p/getProductList",
     method: "get",
     params:data
   })
@@ -17,7 +17,7 @@
 // 鏌ヨ鍗曟潯渚涘簲鍟嗘暟鎹�
 export function getSupplierByNumber(data) {
   return request({
-    url: `/api/s/getSupplierByNumber/${data}`,
+    url: `/api-srm/s/getSupplierByNumber/${data}`,
     method: "get",
     data
   })
@@ -25,7 +25,7 @@
 // 鍒涘缓浜у搧
 export function createProduct(data) {
   return request({
-    url: "/api/p/createProduct",
+    url: "/api-srm/p/createProduct",
     method: "post",
     data
   })
@@ -33,7 +33,7 @@
 // 鍒犻櫎浜у搧
 export function deleteProduct(data) {
   return request({
-    url: "/api/p/deleteProduct",
+    url: "/api-srm/p/deleteProduct",
     method: "delete",
     data
   })
@@ -41,7 +41,7 @@
 // 鏇存柊浜у搧
 export function updateProduct(data) {
   return request({
-    url: "/api/p/updateProduct",
+    url: "/api-srm/p/updateProduct",
     method: "put",
     data
   })
@@ -49,13 +49,13 @@
 
 // 娣诲姞浜у搧鑾峰彇浜у搧鍒楄〃
 // export const getProductListFromGrpc = async (data) => {
-//   return await axios.get(`/api/p/getProductListFromGrpc`, {
+//   return await axios.get(`/api-srm/p/getProductListFromGrpc`, {
 //     params: data
 //   })
 // }
 export function getProductListFromGrpc(data) {
   return request({
-    url: "/api/p/getProductListFromGrpc",
+    url: "/api-srm/p/getProductListFromGrpc",
     method: "get",
     params:data
   })

--
Gitblit v1.8.0