mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-06 02:47:25 +08:00
refactor: 更新API路径以使用buyer API
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* 公共API
|
||||
* 公共 API(由 buyer-api 提供)
|
||||
*/
|
||||
import { http, Method } from "@/utils/request.js";
|
||||
import api from "@/config/api.js";
|
||||
@@ -10,16 +10,16 @@ import api from "@/config/api.js";
|
||||
*/
|
||||
export function getRegionsById(id = 0) {
|
||||
return http.request({
|
||||
url: `${api.common}/common/region/item/${id}`,
|
||||
url: `${api.buyer}/common/region/item/${id}`,
|
||||
method: Method.GET,
|
||||
message: false,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取IM接口前缀
|
||||
// 获取 IM 接口前缀
|
||||
export function getIMDetail() {
|
||||
return http.request({
|
||||
url: `${api.common}/IM`,
|
||||
url: `${api.buyer}/common/IM`,
|
||||
method: Method.GET,
|
||||
message: false,
|
||||
});
|
||||
@@ -29,14 +29,14 @@ export function getIMDetail() {
|
||||
* 文件上传地址
|
||||
* @type {string}
|
||||
*/
|
||||
export const upload = api.common + "/common/upload/file";
|
||||
export const upload = `${api.buyer}/common/upload/file`;
|
||||
|
||||
/**
|
||||
* 获取主题色配置
|
||||
*/
|
||||
export function getThemeSetting() {
|
||||
return http.request({
|
||||
url: `${api.common}/common/common/site/theme`,
|
||||
url: `${api.buyer}/common/site/theme`,
|
||||
method: Method.GET,
|
||||
message: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user