final
This commit is contained in:
26
web-ui/src/store/main.js
Normal file
26
web-ui/src/store/main.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, reactive } from 'vue'
|
||||
|
||||
export const useMainStore = defineStore('main', () => {
|
||||
const screen = ref(1)
|
||||
const address = ref('')
|
||||
const interests = ref('')
|
||||
const duration = ref('')
|
||||
const chat = reactive({ messages: [], asked: 0 })
|
||||
|
||||
function reset() {
|
||||
screen.value = 1
|
||||
address.value = ''
|
||||
duration.value = ''
|
||||
interests.value = ''
|
||||
}
|
||||
|
||||
return {
|
||||
screen,
|
||||
address,
|
||||
duration,
|
||||
interests,
|
||||
chat,
|
||||
reset,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user