From 8e4ab7acddbdb84fd755acf7e75cf471f50cba60 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 31 十月 2024 10:16:47 +0800
Subject: [PATCH] 优化部分页面及配置

---
 src/api/demo/index.ts |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/api/demo/index.ts b/src/api/demo/index.ts
index 39038db..11990a8 100644
--- a/src/api/demo/index.ts
+++ b/src/api/demo/index.ts
@@ -13,35 +13,35 @@
 
 // 查询列表
 export const getDemoPage = (params: PageParam) => {
-  return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/page', params })
+  return request.get({ url: '/shasteel/demo/page', params })
 }
 
 // 获得
 export const getDemo = (id: number) => {
-  return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/get?id=' + id })
+  return request.get({ url: '/shasteel/demo/get?id=' + id })
 }
 
 // 查询应用列表
 export const getDemoList = () => {
-  return request.get({ url: 'http://localhost:8088/admin-api/shasteel/demo/list' })
+  return request.get({ url: '/shasteel/demo/list' })
 }
 
 // 新增
 export const createDemo = (data: DemoVO) => {
-  return request.post({ url: 'http://localhost:8088/admin-api/shasteel/demo/create', data })
+  return request.post({ url: '/shasteel/demo/create', data })
 }
 
 // 修改
 export const updateDemo = (data: DemoVO) => {
-  return request.put({ url: 'http://localhost:8088/admin-api/shasteel/demo/update', data })
+  return request.put({ url: '/shasteel/demo/update', data })
 }
 
 // 删除
 export const deleteDemo = (id: number) => {
-  return request.delete({ url: 'http://localhost:8088/admin-api/shasteel/demo/delete?id=' + id })
+  return request.delete({ url: '/shasteel/demo/delete?id=' + id })
 }
 
 // 导出
 export const exportDemo = (params: DemoVO) => {
-  return request.download({ url: 'http://localhost:8088/admin-api/shasteel/demo/export-excel', params })
+  return request.download({ url: '/shasteel/demo/export-excel', params })
 }

--
Gitblit v1.9.3