add crimata_wasm

This commit is contained in:
Enrique Hernandez 2020-10-07 15:10:26 -05:00
commit 4d5e10d426
409 changed files with 979 additions and 16 deletions

View file

@ -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");

View file

@ -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>