Browse Source

bugfix:多元融合

wangfumin 3 months ago
parent
commit
385a460af6
4 changed files with 13 additions and 13 deletions
  1. 2 2
      .env
  2. 4 4
      src/api/constant.ts
  3. 2 2
      src/api/instance.ts
  4. 5 5
      src/api/map-tile.ts

+ 2 - 2
.env

@@ -1,5 +1,5 @@
 VITE_LASER_HOST=
 VITE_LASER_OSS=/laser-data
 VITE_OSS=
-VITE_PANO_OSS=
-VITE_MAP_PLATFORM=jm
+VITE_PANO_OSS=https://4dkk.4dage.com
+VITE_MAP_PLATFORM=jm

+ 4 - 4
src/api/constant.ts

@@ -118,10 +118,10 @@ export const FLODER_LIST = `${namespace}/caseFiles/allList`
 export const UPLOAD_FILE = `${namespace}/upload/file`
 
 // 素材库分页
-export const MATERIAL_PAG = `/service/manage/dictFile/pageList/media-library`
-export const ADD_MATERIAL = `/service/manage/common/upload/fileNew`
-export const DEL_MATERIAL = `/service/manage/dictFile/del/media-library`
-export const MATERIAL_GROUP_LIST = `/service/manage/dict/getByKey/media-library`
+export const MATERIAL_PAG = `${namespace}/dictFile/pageList/media-library`
+export const ADD_MATERIAL = `${namespace}/upload/fileNew`
+export const DEL_MATERIAL = `${namespace}/dictFile/del/media-library`
+export const MATERIAL_GROUP_LIST = `${namespace}/dict/getByKey/media-library`
 
 
 // 动画模块

+ 2 - 2
src/api/instance.ts

@@ -37,8 +37,8 @@ const gotoLogin = () => {
     //   setTimeout(() => location.reload())
     // });
   } else {
-    const loginHref = `/admin/#/statistics/scene`
-    location.href = loginHref + '?redirect=' + escape(location.href)
+    // const loginHref = `/admin/#/statistics/scene`
+    // location.href = loginHref + '?redirect=' + escape(location.href)
   }
 };
 

+ 5 - 5
src/api/map-tile.ts

@@ -16,9 +16,9 @@ export type MapTile = {
 };
 
 export const fetchMapTiles = async () => {
-  // const items = await axios.get<ServiceMapTile[]>(MAP_TILE_LIST);
-  // return items.map((item) => ({
-  //   ...item,
-  //   mapUrls: JSON.parse(item.mapUrl),
-  // }));
+  const items = await axios.get<ServiceMapTile[]>(MAP_TILE_LIST);
+  return items.map((item) => ({
+    ...item,
+    mapUrls: JSON.parse(item.mapUrl),
+  }));
 };