/** * 清理测试数据脚本 * 在浏览器控制台中复制粘贴执行 */ (async function() { try { console.log('🧹 开始清理测试数据...'); // 使用动态 import const { FmodeParse } = await import('https://cdn.jsdelivr.net/npm/fmode-ng@latest/fesm2022/fmode-ng.mjs'); // 如果上面的 CDN 不行,尝试直接访问 Parse(如果页面已加载) // 或者使用本地的 Parse 对象 console.log('❌ 浏览器控制台无法直接导入模块'); console.log('💡 请使用以下替代方案:'); console.log(''); console.log('=== 方案1:使用测试页面 ==='); console.log('访问: http://localhost:4300/wxwork/test/activation'); console.log('在激活页面的控制台执行清理'); console.log(''); console.log('=== 方案2:手动清理(推荐)==='); console.log('1. 打开 Parse Dashboard'); console.log('2. 找到 Profile 表,搜索 userid = test_user_001'); console.log('3. 将 surveyCompleted 改为 false'); console.log('4. 找到 SurveyLog 表,删除 type = survey-profile 的记录'); console.log(''); console.log('=== 方案3:使用网页清理工具 ==='); console.log('我将创建一个专门的清理页面...'); } catch (err) { console.error('清理失败:', err); } })();