hookehuyr

fix 控制页脚显示

<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-01-17 09:47:54
* @LastEditTime: 2023-01-17 15:27:57
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
......@@ -44,7 +44,7 @@
@active="onActive"
/>
</van-cell-group>
<div v-if="formData.length" style="margin: 16px">
<div v-if="formData.length && PCommit.visible" style="margin: 16px">
<van-button round block type="primary" native-type="submit">
{{ PCommit.text ? PCommit.text : '提交' }}
</van-button>
......@@ -211,6 +211,7 @@ onMounted(async () => {
if (page_commit) {
PCommit.value = {
text: page_commit.text,
visible: !page_commit.invisible,
};
}
formData.value = formatData(page_form);
......