Commit 690b31fcf72289ff95a5c99a61c45b0bf5151498

Authored by xp.Huang
2 parents 7ff5ea99 27dee08e

Merge branch 'ft_local_dev' into 'main'

pref:优化脚本管理 转换函数 默认脚本内容

See merge request huang/yun-teng-iot-front!376
@@ -64,14 +64,7 @@ export const searchFormSchema: FormSchema[] = [ @@ -64,14 +64,7 @@ export const searchFormSchema: FormSchema[] = [
64 }, 64 },
65 ]; 65 ];
66 66
67 -export const defaultTitle = '格式:' + 'out.msg= "hello"+params;';  
68 -  
69 export const defaultScriptContent = ` 67 export const defaultScriptContent = `
70 -var trimSource =source.replaceAll(" ","");  
71 -if(trimSource.length==26 && trimSource.startsWith("020308")){  
72 - var str = "";  
73 - for(var i = 6;i<20;i+=2){  
74 - str += String.fromCharCode(parseInt(trimSource[i]+trimSource[i+1],16));  
75 - }  
76 -} 68 + out.msg= "hello"+params;
77 `; 69 `;
  70 +export const defaultTitle = '格式:' + defaultScriptContent;