|
@@ -9,16 +9,14 @@ const CadDeTail = () => {
|
|
|
state: { path },
|
|
|
} = location;
|
|
|
|
|
|
- console.log('-----path-------', path);
|
|
|
-
|
|
|
useEffect(() => {
|
|
|
const content = document.getElementById('container');
|
|
|
ZwCloud2D.ZwEditor.ZwInit(content);
|
|
|
|
|
|
ZwCloud2D.ZwDataProcessor.ZwSetConnectUrl(
|
|
|
- 'http://47.111.24.13:5121',
|
|
|
+ 'https://cad.greentech.com.cn',
|
|
|
'ws://47.111.24.13:5121',
|
|
|
- 'http://47.111.24.13:5121',
|
|
|
+ 'https://cad.greentech.com.cn',
|
|
|
);
|
|
|
ZwCloud2D.ZwDataProcessor.ZwSetLoadDwg(path);
|
|
|
ZwCloud2D.ZwDataProcessor.ZwLoad();
|