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