slot test

This commit is contained in:
2023-07-30 10:02:21 +00:00
parent d42fac9a7d
commit e515f99a44
3 changed files with 45 additions and 27 deletions

View File

@@ -0,0 +1,28 @@
<template v-slot:list>
<div class="q-pa-md">
ppppppp
</div>
</template>
<script>
import { ref, onMounted } from 'vue'
import axios from 'axios'
export default {
name: 'appSelect',
props: {
name: String,
type: String
},
setup() {
return {
selected: ref([]),
},
onMounted(() => {
console.log('Mounted');
axios.get('http://127.0.0.1:8000/api/v1/allapps')
.then(res => console.log(res.data))
})
},
}
</script>