mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复创建平台时,切换方式默认值显示不准确问题
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
:fields-meta="fieldsMeta"
|
||||
:clean-form-value="cleanFormValue"
|
||||
:after-get-form-value="afterGetFormValue"
|
||||
:after-get-remote-meta="handleAfterGetRemoteMeta"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -74,6 +75,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleAfterGetRemoteMeta(meta) {
|
||||
this.fieldsMeta.su_method.options = meta?.su_method?.choices || []
|
||||
},
|
||||
async setCategories() {
|
||||
const category = this.$route.query.category
|
||||
const type = this.$route.query.type
|
||||
|
||||
@@ -72,6 +72,7 @@ export const platformFieldsMeta = (vm) => {
|
||||
},
|
||||
su_method: {
|
||||
type: 'select',
|
||||
options: [],
|
||||
hidden: (form) => !form['su_enabled']
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user