hookehuyr

fix 控制页脚显示

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