I can preview my code in app but can not work on desk, anyone can help to solve this issue?

Are you on iOS 15? If yes, then the problem is probably in WebView.evaluateJavaScript.

https://twitter.com/scriptableapp/status/1440206816336482309

Also someone else has this problem on this forum: