mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-29 00:05:31 +00:00
perf: component UpdateToken
This commit is contained in:
@@ -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: {
|
||||||
|
Reference in New Issue
Block a user