add crimata_wasm
This commit is contained in:
parent
04d694619e
commit
4d5e10d426
409 changed files with 979 additions and 16 deletions
13
src/main.ts
13
src/main.ts
|
|
@ -1,6 +1,9 @@
|
|||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
|
||||
createApp(App).use(store).use(router).mount('#app')
|
||||
createApp(App)
|
||||
.use(store)
|
||||
.use(router)
|
||||
.mount("#app");
|
||||
|
|
|
|||
|
|
@ -14,5 +14,11 @@ export default defineComponent({
|
|||
components: {
|
||||
HelloWorld,
|
||||
},
|
||||
async mounted(){
|
||||
await import("../../crate/pkg").then(async module => {
|
||||
const result = await module.add(1, 2);
|
||||
console.log('testing rust', result)
|
||||
})
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue