mirror of
https://github.com/luxfhe/template-vue.git
synced 2026-10-30 17:07:38 +00:00
27 lines
543 B
Vue
27 lines
543 B
Vue
<script setup lang="ts">
|
|
import { ref, watchEffect } from 'vue';
|
|
import Connect from './components/Connect.vue';
|
|
import { init } from './fhevmjs';
|
|
|
|
const isInitialized = ref(false);
|
|
|
|
watchEffect(async () => {
|
|
await init();
|
|
isInitialized.value = true;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<h1>fhevmjs</h1>
|
|
<div v-if="isInitialized"><Connect /></div>
|
|
<p className="read-the-docs">
|
|
<a href="https://docs.lux.ai/fhevm">See the documentation for more information</a>
|
|
</p>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.read-the-docs {
|
|
color: #888;
|
|
}
|
|
</style>
|