diff --git a/bun.lockb b/bun.lockb index 4dad67f..7d1fd1e 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 14fbd17..d3ec56a 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "ant-design-vue": "4.x", "mande": "^2.0.8", "moment": "^2.30.1", + "radash": "^12.1.0", "vue": "^3.4.21", "vue-router": "4" }, diff --git a/src/api/product.js b/src/api/product.js index 8d213fa..a24dd5c 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -4,4 +4,8 @@ const product = mande('/api/v1/products') export const ListProducts = (query) => { return product.get({query:query}) +} + +export const UpdateProduct=(p)=>{ + return product.post(p) } \ No newline at end of file diff --git a/src/views/Product/index.vue b/src/views/Product/index.vue index 996db73..c8e62be 100644 --- a/src/views/Product/index.vue +++ b/src/views/Product/index.vue @@ -17,6 +17,22 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/layout/Header.vue b/src/views/layout/Header.vue index b74e438..715c97f 100644 --- a/src/views/layout/Header.vue +++ b/src/views/layout/Header.vue @@ -1,5 +1,5 @@