基本完成了用户相关前端页面的编写,经过测试能够实现相关功能
This commit is contained in:
14
src/apis/product.ts
Normal file
14
src/apis/product.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import http from "../utils/http";
|
||||
|
||||
export const addProduct = (data: {
|
||||
name: string;
|
||||
price: number;
|
||||
description: string;
|
||||
image: string;
|
||||
}) => {
|
||||
return http({
|
||||
url: "/product",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user