shaogen1995 1 ano atrás
pai
commit
a1f40b7215

+ 2 - 2
pc/public/knowInfo.html

@@ -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 - 1
pc/public/staticData.js

@@ -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'
 
 
 // 打包环境

+ 1 - 1
pc/src/pages/A2Main/Tab5Info/index.tsx

@@ -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}