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 @@