diff --git a/.env.development b/.env.development index 188322f..30b7f0b 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VITE_API_BASE_URL = "https://api.example.com"; \ No newline at end of file +VITE_API_BASE_URL = "http://m6cbfb9d.natappfree.cc" \ No newline at end of file diff --git a/.env.test b/.env.test index dd94ada..30b7f0b 100644 --- a/.env.test +++ b/.env.test @@ -1 +1 @@ -VITE_API_BASE_URL = "https://api.example.com" \ No newline at end of file +VITE_API_BASE_URL = "http://m6cbfb9d.natappfree.cc" \ No newline at end of file diff --git a/src/api/userPermissions.js b/src/api/userPermissions.js index b0788d1..fcbf218 100644 --- a/src/api/userPermissions.js +++ b/src/api/userPermissions.js @@ -1,9 +1,10 @@ import request from '../utils/myAxios'; +var base_url = import.meta.env.VITE_API_BASE_URL // 行情期限--获取地区列表 export function marketListApi(params) { return request({ - url: "http://m6cbfb9d.natappfree.cc/admin/region/list", + url: base_url + "/admin/region/list", method: "post", data: params, }); @@ -12,7 +13,16 @@ export function marketListApi(params) { // 行情期限--获取用户列表 export function userMListApi(params) { return request({ - url: "http://m6cbfb9d.natappfree.cc/admin/market/list", + url: base_url + "/admin/market/list", + method: "post", + data: params, + }); +} + +// 获取导出列表 +export function exportListApi(params) { + return request({ + url: base_url + "/admin/export/status/list", method: "post", data: params, });