slot test
This commit is contained in:
28
frontend/src/components/AppSelect.vue
Normal file
28
frontend/src/components/AppSelect.vue
Normal 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>
|
||||
Reference in New Issue
Block a user