mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-10 20:00:45 +00:00
Compare commits
1 Commits
pr@v3@fix_
...
v2.2.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40e7fcda2e |
@@ -111,7 +111,9 @@ export default {
|
|||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
autosize: true
|
autosize: true
|
||||||
},
|
},
|
||||||
hidden: form => form.protocol !== 'k8s'
|
hidden: form => {
|
||||||
|
return form.protocol !== 'k8s'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
protocol: {
|
protocol: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -208,6 +210,16 @@ export default {
|
|||||||
url: '/api/v1/assets/system-users/',
|
url: '/api/v1/assets/system-users/',
|
||||||
authHiden: false
|
authHiden: false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
method: {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
const params = this.$route.params
|
||||||
|
const method = params.id ? 'post' : 'put'
|
||||||
|
if (method === 'post') {
|
||||||
|
this.fieldsMeta.token.rules[0].required = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user