From 655cb94945f801cb6c3360b6631e8500fc16d76b Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Dec 2024 16:51:44 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20page-spy=20=E6=97=A5=E5=BF=97=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/pagespy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/pagespy.js b/src/utils/pagespy.js index 13f2c98..8ded402 100644 --- a/src/utils/pagespy.js +++ b/src/utils/pagespy.js @@ -12,8 +12,9 @@ export const loadPageSpy = (title) => { ]; Promise.all(PageSpySrc.map((src) => loadScript(src))).then(() => { // 注册插件 - PageSpy.registerPlugin(new DataHarborPlugin({ maximum: 2 * 1024 * 1024 })); + PageSpy.registerPlugin(new DataHarborPlugin({ maximum: 10 * 1024 * 1024 })); + PageSpy.registerPlugin(new RRWebPlugin()); // 实例化 PageSpy - window.$pageSpy = new PageSpy({ api: 'page-spy.mycht.cn', project: 'Sales CRM', title: title + '(v' + BUILD_VERSION + ')', autoRender: false }); + window.$pageSpy = new PageSpy({ api: 'page-spy.mycht.cn', project: 'Sales CRM', title: title + '(v' + BUILD_VERSION + ')', autoRender: false, offline: false, }); }); };