Sha256: 9fbb6dcc74f4061e1261b1ab606a09017d2044470a96a5fe7166ac2b99c42aa8
Contents?: true
Size: 625 Bytes
Versions: 16
Compression:
Stored size: 625 Bytes
Contents
<template> <Rule :id="id"></Rule> </template> <script lang="ts"> import { useTitle } from "@vueuse/core" import { defineComponent, onMounted, watch } from "vue" import Rule from "@/components/rule/RuleWrapper.vue" export default defineComponent({ name: "RuleView", components: { Rule }, props: { id: { type: String, required: true } }, setup(props) { const updateTitle = () => { useTitle(`Rule:${props.id} - Mihari`) } onMounted(() => { updateTitle() }) watch( () => props.id, () => { updateTitle() } ) } }) </script>
Version data entries
16 entries across 16 versions & 1 rubygems