diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index 3a976f5..d6fda50 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -21,3 +21,5 @@ export { default as userApi } from "./user"; export { default as walletApi } from "./wallet"; export { default as faceApi } from "./face"; + +export { default as shopApi } from "./shop"; diff --git a/src/sheep/api/shop.ts b/src/sheep/api/shop.ts new file mode 100644 index 0000000..67feb45 --- /dev/null +++ b/src/sheep/api/shop.ts @@ -0,0 +1,49 @@ +import request from "@/sheep/utils/request"; + +export default { + getSupermarketSpuList: (data: any) => + request({ + url: `/supermarket/supermarketSpu/ad/updateSpuStock`, + method: "POST", + data, + custom: { + showLoading: false, + }, + }), + // del: (params: any) => + // request({ + // url: `/sys/user/face-delete`, + // method: "DELETE", + // params, + // custom: { + // showLoading: false, + // }, + // }), + // create: (data: any) => + // request({ + // url: `/sys/user/face-create`, + // method: "POST", + // data, + // custom: { + // showLoading: false, + // }, + // }), + // get: (params: any) => + // request({ + // url: `/sys/user/face-get`, + // method: "GET", + // params, + // custom: { + // showLoading: false, + // }, + // }), + // put: (data: any) => + // request({ + // url: `/sys/user/face-update`, + // method: "PUT", + // data, + // custom: { + // showLoading: false, + // }, + // }), +}; diff --git a/vite.config.ts b/vite.config.ts index 04c143b..6c8ef9b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,14 +7,8 @@ import Unocss from "unocss/vite"; import { useRouter } from "./src/sheep"; export default defineConfig(({ mode }) => { - const { - NODE_ENV, - VITE_APP_DEV_SERVICE, - VITE_APP_PROD_SERVICE, - VITE_IMAGE_BASE_PATH, - } = loadEnv(mode, process.cwd(), ""); - const baseUrl = - NODE_ENV == "development" ? VITE_APP_DEV_SERVICE : VITE_APP_PROD_SERVICE; + const { NODE_ENV, VITE_APP_DEV_SERVICE, VITE_APP_PROD_SERVICE, VITE_IMAGE_BASE_PATH } = loadEnv(mode, process.cwd(), ""); + const baseUrl = NODE_ENV == "development" ? VITE_APP_DEV_SERVICE : VITE_APP_PROD_SERVICE; return { build: { target: "es6",