Validate prop input
This commit is contained in:
parent
15d8cadbda
commit
1b369e9752
|
@ -36,7 +36,16 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
props: ['siteName', 'pageUrl'],
|
||||
props: {
|
||||
siteName: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
pageUrl: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
isActive(item) {
|
||||
|
|
Loading…
Reference in a new issue