Browse Source

修改接口

main
dark 3 months ago
parent
commit
8454b6df36
  1. 16
      src/service/app/package.ts
  2. 4
      vite.config.ts

16
src/service/app/package.ts

@ -8,14 +8,14 @@ const appPackage = {
list: async (params: any) => {
return await request.get<IPageResult<APP.IAppPackage>>(`/package/list`, { ...params })
},
//http://154.88.7.8:45321/package/v1/create
add: async (params: any) => {
return await request.post<IPageResult<APP.IAppPackage>>(`/package/create`, { ...params })
},
//delete
delete: async (params: any) => {
return await request.post<IPageResult<APP.IAppPackage>>(`/package/delete`, { ...params })
},
// //http://154.88.7.8:45321/package/v1/create
// add: async (params: any) => {
// return await request.post<IPageResult<APP.IAppPackage>>(`/package/create`, { ...params })
// },
// //delete
// delete: async (params: any) => {
// return await request.post<IPageResult<APP.IAppPackage>>(`/package/delete`, { ...params })
// },
//package
package: async (params: any) => {
return await request.post<IPageResult<APP.IAppPackage>>(`/package/package`, { ...params })

4
vite.config.ts

@ -32,8 +32,8 @@ export default defineConfig(({ mode }) => {
rewrite: (path) => {
//replace /api/v1/package to /package/v1
//http://154.88.7.8:45321/package/v1/list
path = path.replace('/api/v1/package', '/package/v1')
console.log(path)
// path = path.replace('/api/v1/package', '/package/v1')
// console.log(path)
return path
}
},

Loading…
Cancel
Save