Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-04-17 14:11:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
36f34eeca26aa7ee958511e6f6e3d01a2afc6408
36f34eec
1 parent
1797a736
fix 调整规则获取源数据字段
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/pages/table/index.vue
src/pages/table/index.vue
View file @
36f34ee
<!--
* @Date: 2023-03-24 09:19:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-1
0 15:58:46
* @LastEditTime: 2023-04-1
7 14:09:23
* @FilePath: /custom_form/src/pages/table/index.vue
* @Description: 文件描述
-->
...
...
@@ -73,7 +73,7 @@ const ruleForm = ref(null);
// // 获取表单设置
const store = mainStore();
const { formSetting,
formInfo,
callIndex } = storeToRefs(store);
const { formSetting, callIndex } = storeToRefs(store);
// web端判断封面图片高度
const is_pc = computed(() => process.env.TARO_ENV === 'h5' && wxInfo().isPC);
...
...
@@ -223,6 +223,8 @@ const onSubmitPwd = async () => {
}
}
const formInfo = ref({})
onMounted(async () => {
// 检查是否从首页跳转
if (!callIndex.value) {
...
...
@@ -238,6 +240,7 @@ onMounted(async () => {
const { data } = await queryFormAPI({ form_code });
const form_data = data;
formInfo.value = data;
// 动态修改标题
Taro.setNavigationBarTitle({
title: form_data.name ? form_data.name : ''
...
...
Please
register
or
login
to post a comment