Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | <template> <q-btn :label="button.title" @click="redirect(button.to, name)" class="btn-assets brx-rounded-10 bg-lightblue text-blue-brand" align="left" flat no-caps/> </template> <script lang="ts"> import { defineComponent, ref } from 'vue' import {useRoute, useRouter} from 'vue-router' export default defineComponent({ props:{ menu:{}, code:String, name: String }, setup(props:any) { const router = useRouter() const button = ref(props.menu) return{ button, redirect(toNext:string, name: string){ router.push( { name: toNext, params: { name } } ) }, } }, }) </script> <style lang="sass" scoped> .custom-btn color: #0491D6 font-size: 25px .btn-assets margin-bottom: 20px max-width: 210px height: 40px </style> |