Commit ff6fd95a29ac234bfab9c4d705c5f09a6325bc78

Authored by xp.Huang
2 parents 29b696f1 6e47822c

Merge branch 'ww' into 'main'

feat: implement jump preview

See merge request huang/yun-teng-iot-front!220
@@ -157,10 +157,10 @@ @@ -157,10 +157,10 @@
157 }; 157 };
158 158
159 const handlePreview = (record: Recordable | null) => { 159 const handlePreview = (record: Recordable | null) => {
160 - window.open(VITE_GLOB_CONFIGURATION + '/?dev=1', '_blank'); 160 + window.open(`${VITE_GLOB_CONFIGURATION}/?dev=1&configurationId=${record!.id}&lightbox=1`);
161 }; 161 };
162 const handleDesign = (record: Recordable | null) => { 162 const handleDesign = (record: Recordable | null) => {
163 - window.open(VITE_GLOB_CONFIGURATION + '/?dev=1&configurationId=' + record.id, '_blank'); 163 + window.open(VITE_GLOB_CONFIGURATION + '/?dev=1&configurationId=' + record!.id, '_blank');
164 }; 164 };
165 return { 165 return {
166 searchInfo, 166 searchInfo,