修改默认导出函数的名称。

This commit is contained in:
徐涛
2025-02-07 08:14:38 +08:00
parent 89b2a2f9d9
commit ca83ce082b
5 changed files with 6 additions and 6 deletions

View File

@@ -202,7 +202,7 @@ impl SchemeSetting {
}
}
#[wasm_bindgen]
#[wasm_bindgen(js_name = toJsValue)]
pub fn to_js_value(&self) -> Result<JsValue, JsError> {
Ok(serde_wasm_bindgen::to_value(self)?)
}