add tauri-sqlite and guest module
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
greetMsg = await invoke("greet", { name });
|
||||
}
|
||||
|
||||
async function wave(event: Event) {
|
||||
event.preventDefault();
|
||||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
greetMsg = await invoke("wave", { name });
|
||||
}
|
||||
</script>
|
||||
|
||||
<main class="container">
|
||||
@@ -31,6 +37,11 @@
|
||||
<input id="greet-input" placeholder="Enter a name..." bind:value={name} />
|
||||
<button type="submit">Greet</button>
|
||||
</form>
|
||||
|
||||
<form class="row" onsubmit={wave}>
|
||||
<input id="greet-input" placeholder="Enter a name..." bind:value={name} />
|
||||
<button type="submit">Wave</button>
|
||||
</form>
|
||||
<p>{greetMsg}</p>
|
||||
</main>
|
||||
|
||||
|
Reference in New Issue
Block a user