fix: 修复创建平台时,切换方式默认值显示不准确问题

This commit is contained in:
“huailei000”
2022-11-11 18:18:40 +08:00
committed by huailei
parent 166adbb7ba
commit 5d2e826bae
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -72,6 +72,7 @@ export const platformFieldsMeta = (vm) => {
},
su_method: {
type: 'select',
options: [],
hidden: (form) => !form['su_enabled']
}
}