فهرست منبع

feat(records): change

gemercheung 1 سال پیش
والد
کامیت
0c9413f727
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/app/map/company-select/organization.ts

+ 2 - 2
src/app/map/company-select/organization.ts

@@ -7,7 +7,7 @@ import {
 } from "@/request";
 
 const request = axios.create({
-  baseURL: 'https://xj-mix3d.4dkankan.com/fusion-xj',
+  baseURL: 'https://xj-mix3d.4dkankan.com/',
   timeout: 1000,
   headers: {
     share: 1,
@@ -36,7 +36,7 @@ export type Organization = {
 };
 
 export const getOrganizationTree = async (type?: string) =>
-  (await request.get<Organization[]>('/web/department/treeselect', { headers: { share: 1 }, params: { type, ingoreRes: true, share: 1, } })).data;
+  (await axios.get<Organization[]>(getTreeselect, { headers: { share: 1 }, params: { type, ingoreRes: true, share: 1, } })).data;
 
 export const addOrganization = async (
   dept: Omit<Organization, "id">,