diff --git a/client/src/views/Post.vue b/client/src/views/Post.vue index 4c6e07e..3f0e939 100644 --- a/client/src/views/Post.vue +++ b/client/src/views/Post.vue @@ -14,6 +14,10 @@ export default { id: { type: String, name: "id", + validator: val => { + const reg = /([0-9]|[a-f]){24}/ + return reg.test(val) + }, } } }