From a4563d338b4df06d3fe6ca9123dcd1ec9c23a81b Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Fri, 17 Nov 2023 11:40:37 +0800
Subject: [PATCH] 表单体验升级,支持设定错误集,支持错误自动滚动

---
 bases/Pilot.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/bases/Pilot.js b/bases/Pilot.js
index 6fa3641..7a849af 100644
--- a/bases/Pilot.js
+++ b/bases/Pilot.js
@@ -4,8 +4,7 @@
  */
 
 import Taro, { getCurrentInstance, getCurrentPages } from '@tarojs/taro';
-import { Fetcher } from './Fetcher';
-import { Tools } from '@components/common/Tools';
+import { $hostBoot } from '@components/bases/HostBoot';
 import project from '@project';
 
 export class Pilot {
@@ -93,7 +92,7 @@
     static createPoster($vm) {
         return (pageType, action, data) => {
             // 解除引用关系
-            const nextData = JSON.parse(JSON.stringify(data));
+            const nextData = JSON.parse(JSON.stringify(data || {}));
             // 下一页
             if (pageType === 'nextPage') {
                 // 持续 3 秒,检测下一页是否存在
@@ -145,7 +144,7 @@
             }
             // 小程序
             else if (process.env.TARO_ENV === 'weapp') {
-                assets2[key] = Fetcher.host + project.host.assetsPath + asset;
+                assets2[key] = $hostBoot.getHost() + project.host.assetsPath + asset;
             }
         });
         return assets2;

--
Gitblit v1.9.1