Commit c5cde05e authored by 程恺文's avatar 程恺文

fix:'图片资源请求本地'

parent 431b9611
Pipeline #96798 waiting for manual action with stages
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com * @Author: 634665781 634665781@qq.com
* @Date: 2025-04-08 09:12:30 * @Date: 2025-04-08 09:12:30
* @LastEditors: 634665781 634665781@qq.com * @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2025-04-09 15:45:00 * @LastEditTime: 2025-04-10 09:00:17
* @FilePath: \CivWeb\src\pages\bootpage\template\project\SL\MySwiper.js * @FilePath: \CivWeb\src\pages\bootpage\template\project\SL\MySwiper.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -66,6 +66,7 @@ const MySwiper = props => { ...@@ -66,6 +66,7 @@ const MySwiper = props => {
modifier: 2, // 效果强度系数‌:ml-citation{ref="5" data="citationList"} modifier: 2, // 效果强度系数‌:ml-citation{ref="5" data="citationList"}
slideShadows:false, // 启用投影效果‌:ml-citation{ref="5" data="citationList"} slideShadows:false, // 启用投影效果‌:ml-citation{ref="5" data="citationList"}
}} }}
> >
{data.map(item => ( {data.map(item => (
<SwiperSlide key={item.id}> <SwiperSlide key={item.id}>
...@@ -74,7 +75,7 @@ const MySwiper = props => { ...@@ -74,7 +75,7 @@ const MySwiper = props => {
onClick={() => { onClick={() => {
item.name ? onLink(integrationData[item.name], loginAction) : null; item.name ? onLink(integrationData[item.name], loginAction) : null;
}} }}
src= {item.image?('http://192.168.10.168:8688'+item.image):null} src= {item.image?(window.origin+item.image):null}
alt={`Image ${item.id}`} alt={`Image ${item.id}`}
style={{ height: 'auto' }} style={{ height: 'auto' }}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment