소스 검색

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

yanglzh 1 년 전
부모
커밋
0a3d0bb920
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 });