From 4d9450a335cfc9e9712d30b6e9ad740920f01c6c Mon Sep 17 00:00:00 2001 From: timerzz Date: Wed, 15 May 2024 21:10:36 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=A2=9E=E5=8A=A0=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product.js | 4 ++++ src/views/Product/index.vue | 27 +++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index a24dd5c..3948034 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -8,4 +8,8 @@ export const ListProducts = (query) => { export const UpdateProduct=(p)=>{ return product.post(p) +} + +export const GetProduct = (pid) => { + return product.get(`p/${pid}`) } \ No newline at end of file diff --git a/src/views/Product/index.vue b/src/views/Product/index.vue index d86332c..ca47d48 100644 --- a/src/views/Product/index.vue +++ b/src/views/Product/index.vue @@ -12,7 +12,7 @@
- + + +
@@ -102,7 +114,7 @@