setup test view

This commit is contained in:
vabene1111
2023-02-16 18:26:26 +01:00
parent f554963ae7
commit 9573ff0932
2 changed files with 26 additions and 11 deletions

View File

@ -2,37 +2,50 @@
<div id="app">
Recipe Card
<b-checkbox v-model="recipe_detailed"></b-checkbox>
<div class="row">
<div class="col-md-3">
<recipe-card
v-if="recipe !== undefined"
:recipe="recipe"
:detailed="recipe_detailed"
></recipe-card>
</div>
</div>
</div>
</template>
<script>
import Vue from "vue"
import { BootstrapVue } from "bootstrap-vue"
import {BootstrapVue} from "bootstrap-vue"
import "bootstrap-vue/dist/bootstrap-vue.css"
import {ApiApiFactory} from "@/utils/openapi/api";
import RecipeCard from "@/components/RecipeCard.vue";
Vue.use(BootstrapVue)
//import Multiselect from "vue-multiselect"
export default {
name: "TestView",
mixins: [],
components: {
// Multiselect,
},
components: {RecipeCard},
data() {
return {
recipe: undefined,
recipe_detailed: false,
}
},
mounted() {
this.$i18n.locale = window.CUSTOM_LOCALE
},
methods: {
let apiClient = new ApiApiFactory()
apiClient.retrieveRecipe('119').then((r) => {
this.recipe = r.data
})
},
methods: {},
}
</script>