diff --git a/packages/common/js/preview.js b/packages/common/js/preview.js index 205cabb16..ae5be441e 100644 --- a/packages/common/js/preview.js +++ b/packages/common/js/preview.js @@ -29,7 +29,7 @@ const open = (params = {}) => { const { scripts, styles } = useMaterial().getCanvasDeps() params.scripts = scripts.reduce((res, item) => { - res[item.package] = item.version + res[item.package] = item.script return res }, {})