Описание изменений

This commit is contained in:
2025-02-21 19:08:03 +03:00
parent 2ddd4a9ff0
commit 1f08f07ca5
11 changed files with 248 additions and 20 deletions

View File

@@ -5,8 +5,14 @@
<AIAssistant
:isConnected="isConnected"
:userAddress="userAddress"
@chatUpdated="handleChatUpdate"
/>
<ServerControl />
<DataTables
:isConnected="isConnected"
:userAddress="userAddress"
ref="dataTables"
/>
</div>
</template>
@@ -15,10 +21,12 @@ import { ref, watch } from 'vue'
import ContractInteraction from './components/ContractInteraction.vue'
import AIAssistant from './components/AIAssistant.vue'
import ServerControl from './components/ServerControl.vue'
import DataTables from './components/DataTables.vue'
const contractInteraction = ref(null)
const isConnected = ref(false)
const userAddress = ref(null)
const dataTables = ref(null)
watch(() => contractInteraction.value?.isConnected, (newValue) => {
isConnected.value = newValue
@@ -27,6 +35,10 @@ watch(() => contractInteraction.value?.isConnected, (newValue) => {
watch(() => contractInteraction.value?.address, (newValue) => {
userAddress.value = newValue
})
function handleChatUpdate() {
dataTables.value?.fetchData()
}
</script>
<style>