Описание изменений
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user