Browse Source

fix: 修复产品详情-数据解析中脚本保存报错的问题

yanglzh 1 year ago
parent
commit
0a3d0bb920
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/iot/device/product/component/dataParse.vue

+ 1 - 1
src/views/iot/device/product/component/dataParse.vue

@@ -87,7 +87,7 @@ function validate() {
 
 	return new Promise((resolve, reject) => {
 		const funStr = mirrorRef.value.getValue()
-		const worker = new Worker('./worker.js');
+		const worker = new Worker('/worker.js');
 
 		// 向 Worker 发送消息
 		worker.postMessage({ type: 'validateFunctionString', functionString: funStr });