1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-28 23:08:17 +09:00

Add prop validations in MkAcct (#7439)

This commit is contained in:
Zero King 2021-04-12 14:04:10 +00:00 committed by GitHub
parent faf2c007aa
commit 1019e0bcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,16 @@ import { toUnicode } from 'punycode/';
import { host } from '@client/config';
export default defineComponent({
props: ['user', 'detail'],
props: {
user: {
type: Object,
required: true
},
detail: {
type: Boolean,
default: false
},
},
data() {
return {
host: toUnicode(host),