@@ -55,8 +55,8 @@
const id = window.location.href.split('?sId=')[1]
-
- fetch(`https://ypbwg.4dage.com/api/show/knowledge/cms/detail/${id}`)
+ // https://ypbwg.4dage.com
+ fetch(`/api/show/knowledge/cms/detail/${id}`)
.then(response => response.json())
.then(data => {
const dataRes = data.data
@@ -1,5 +1,5 @@
// 开发环境
-const staticUrl = window.location.href.includes('localhost:') ? 'http://127.0.0.1:8080' : '/web'
+const staticUrl = window.location.href.includes('localhost:') ? 'http://127.0.0.1:8080' : '/pc/staticData'
// 打包环境
@@ -138,7 +138,7 @@ function Tab5Info({ sId, closeFu, isOpen }: Props) {
<iframe
onLoad={() => setIsLoding(false)}
key={acId}
- src={`/knowInfo.html?sId=${acId}`}
+ src={`/pc/knowInfo.html?sId=${acId}`}
frameBorder="0"
></iframe>
) : null}