mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Rearrange WASM code async import style
This commit is contained in:
parent
f3533b2848
commit
e280bec824
1 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,8 @@ html, body, #app {
|
|||
import { defineComponent } from "vue";
|
||||
import MainWindow from "./components/window/MainWindow.vue";
|
||||
|
||||
const wasm = import("../wasm/pkg");
|
||||
|
||||
export default defineComponent({
|
||||
components: { MainWindow },
|
||||
created() {
|
||||
|
|
@ -26,7 +28,6 @@ export default defineComponent({
|
|||
},
|
||||
methods: {
|
||||
async greet() {
|
||||
const wasm = import("../wasm/pkg");
|
||||
const { greet } = await wasm;
|
||||
console.log(greet("Graphite"));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue