Start app when keycloak is ready; components
All checks were successful
/ build (push) Successful in 10s
All checks were successful
/ build (push) Successful in 10s
This commit is contained in:
parent
d3943fc0b2
commit
6c5ef2f42c
6 changed files with 144 additions and 122 deletions
|
@ -1,16 +1,28 @@
|
|||
<script setup lang='ts'>
|
||||
import { ref } from 'vue'
|
||||
import { ref, type PropType, type ComponentObjectPropsOptions } from 'vue'
|
||||
import { resourceServer } from '@/main'
|
||||
|
||||
const props = defineProps({
|
||||
resourceName: String,
|
||||
resourceId: String,
|
||||
interface Props {
|
||||
resourceName: string,
|
||||
resourceId?: string,
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
/*
|
||||
const props = defineProps<ComponentObjectPropsOptions<Props>>({
|
||||
resourceName: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
resourceId: { type: String},
|
||||
})
|
||||
*/
|
||||
let _class = ref<string>("")
|
||||
let _title = ref<string>("")
|
||||
|
||||
let _class: String = ref("")
|
||||
let _title: String = ref("")
|
||||
|
||||
const init = async (props) => {
|
||||
const init = async (props: any) => {
|
||||
// Get code at component boot time
|
||||
const url = props.resourceId ? `${props.resourceName}/${props.resourceId}` : props.resourceName
|
||||
await resourceServer.get(url).then(
|
||||
resp => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue