| 1 | <template> |
| 2 | <n-button :size :type :secondary @click="gotoPage()"> |
| 3 | <template #icon> |
| 4 | <Icon :name="VulnerabilityIcon" :size="16" /> |
| 5 | </template> |
| 6 | Web Vulnerability Assessment |
| 7 | </n-button> |
| 8 | </template> |
| 9 | |
| 10 | <script setup lang="ts"> |
| 11 | import type { ButtonSize, ButtonType } from "naive-ui" |
| 12 | import { NButton } from "naive-ui" |
| 13 | import { useRouter } from "vue-router" |
| 14 | import Icon from "@/components/common/Icon.vue" |
| 15 | |
| 16 | defineProps<{ |
| 17 | size?: ButtonSize |
| 18 | type?: ButtonType |
| 19 | secondary?: boolean |
| 20 | }>() |
| 21 | |
| 22 | const VulnerabilityIcon = "bi:radioactive" |
| 23 | |
| 24 | const router = useRouter() |
| 25 | |
| 26 | function gotoPage() { |
| 27 | router.push({ name: "WebVulnerabilityAssessment" }) |
| 28 | } |
| 29 | </script> |