import history from "./history"; export const AppTabList = [ { id: 1, name: "总览", pathUrl: "/", path: "/" }, { id: 2, name: "村落", pathUrl: "/village", path: "/village" }, { id: 3, name: "建筑", pathUrl: "/architec?id=1", path: "/architec" }, { id: 4, name: "构件", pathUrl: "/build", path: "/build" }, ]; // 嵌套 iframe history.go(-1) 返回的问题 export const getUrlHashFu = (id: string) => { const url = window.location.hash; if (url && url.includes("#/")) { const path = url.replace("#", ""); history.push(`/scene?id=${id}&back=${path}`); } };