修改从url中获取的实训名称字段名

This commit is contained in:
soul-walker 2024-05-27 14:38:30 +08:00
parent 33dee8e1a8
commit 215a43a6cd

View File

@ -8,7 +8,7 @@ func _ready():
# 监听JavaScript发送的场景名称 # 监听JavaScript发送的场景名称
var training_name = JavaScriptBridge.eval(""" var training_name = JavaScriptBridge.eval("""
var urlParams = new URLSearchParams(window.location.search); var urlParams = new URLSearchParams(window.location.search);
urlParams.get('training'); urlParams.get('name');
""") """)
var token = JavaScriptBridge.eval(""" var token = JavaScriptBridge.eval("""
var urlParams = new URLSearchParams(window.location.search); var urlParams = new URLSearchParams(window.location.search);