Showing
1 changed file
with
5 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-03-24 09:19:27 | 2 | * @Date: 2023-03-24 09:19:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-04-10 15:58:46 | 4 | + * @LastEditTime: 2023-04-17 14:09:23 |
| 5 | * @FilePath: /custom_form/src/pages/table/index.vue | 5 | * @FilePath: /custom_form/src/pages/table/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -73,7 +73,7 @@ const ruleForm = ref(null); | ... | @@ -73,7 +73,7 @@ const ruleForm = ref(null); |
| 73 | 73 | ||
| 74 | // // 获取表单设置 | 74 | // // 获取表单设置 |
| 75 | const store = mainStore(); | 75 | const store = mainStore(); |
| 76 | -const { formSetting, formInfo, callIndex } = storeToRefs(store); | 76 | +const { formSetting, callIndex } = storeToRefs(store); |
| 77 | 77 | ||
| 78 | // web端判断封面图片高度 | 78 | // web端判断封面图片高度 |
| 79 | const is_pc = computed(() => process.env.TARO_ENV === 'h5' && wxInfo().isPC); | 79 | const is_pc = computed(() => process.env.TARO_ENV === 'h5' && wxInfo().isPC); |
| ... | @@ -223,6 +223,8 @@ const onSubmitPwd = async () => { | ... | @@ -223,6 +223,8 @@ const onSubmitPwd = async () => { |
| 223 | } | 223 | } |
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | +const formInfo = ref({}) | ||
| 227 | + | ||
| 226 | onMounted(async () => { | 228 | onMounted(async () => { |
| 227 | // 检查是否从首页跳转 | 229 | // 检查是否从首页跳转 |
| 228 | if (!callIndex.value) { | 230 | if (!callIndex.value) { |
| ... | @@ -238,6 +240,7 @@ onMounted(async () => { | ... | @@ -238,6 +240,7 @@ onMounted(async () => { |
| 238 | const { data } = await queryFormAPI({ form_code }); | 240 | const { data } = await queryFormAPI({ form_code }); |
| 239 | 241 | ||
| 240 | const form_data = data; | 242 | const form_data = data; |
| 243 | + formInfo.value = data; | ||
| 241 | // 动态修改标题 | 244 | // 动态修改标题 |
| 242 | Taro.setNavigationBarTitle({ | 245 | Taro.setNavigationBarTitle({ |
| 243 | title: form_data.name ? form_data.name : '' | 246 | title: form_data.name ? form_data.name : '' | ... | ... |
-
Please register or login to post a comment