perf: component UpdateToken

This commit is contained in:
“huailei000”
2022-10-31 19:57:11 +08:00
committed by huailei
parent 85abb5937c
commit 91f6fe3965

View File

@@ -32,6 +32,10 @@ export default {
return this.$t('common.Update') return this.$t('common.Update')
} }
}, },
showInput: {
type: Boolean,
default: true
},
placeholder: { placeholder: {
type: String, type: String,
default: () => '' default: () => ''
@@ -39,13 +43,13 @@ export default {
}, },
data() { data() {
return { return {
isShow: false, isShow: this.showInput,
curValue: this.value curValue: this.value
} }
}, },
created() { created() {
if (this.$route.path.indexOf('/create') !== -1) { if (this.$route.path.indexOf('/update') !== -1) {
this.isShow = true this.isShow = false
} }
}, },
methods: { methods: {