提交 f386bea9 authored 作者: vipcxj's avatar vipcxj

fix:修复导致生产环境的路径相关问题

上级 60f33568
...@@ -8,8 +8,8 @@ export async function fetchDomains(basePath, withRoot = false) { ...@@ -8,8 +8,8 @@ export async function fetchDomains(basePath, withRoot = false) {
if (!basePath) { if (!basePath) {
basePath = getCookie(cookie.domainPath); basePath = getCookie(cookie.domainPath);
} }
const rootDomainInfo = withRoot ? await request('/api/domain/user/info', { dmPath: basePath }) : null; const rootDomainInfo = withRoot ? await request(`${config.contextPath}/api/domain/user/info`, { dmPath: basePath }) : null;
const childrenDomainInfoList = await request('/api/domain/user/children-info', { dmPath: basePath }); const childrenDomainInfoList = await request(`${config.contextPath}/api/domain/user/children-info`, { dmPath: basePath });
let infoList; let infoList;
if (rootDomainInfo && childrenDomainInfoList) { if (rootDomainInfo && childrenDomainInfoList) {
infoList = [ infoList = [
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论