From d4c219aaec82248fe27ed9023d4c9613136428fc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 26 May 2021 08:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=B0=8F=E7=A8=8B=E5=BA=8Fbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/train/train.js | 2 +- project.config.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/train/train.js b/pages/train/train.js index 179821c..8489480 100644 --- a/pages/train/train.js +++ b/pages/train/train.js @@ -133,7 +133,7 @@ Page({ 'Cookie': getApp().globalData.sessionId, }, success: res => { - if (res.statusCode === 200) { + if (res.statusCode === 200 && res.data.rows) { if (res.data.rows.length == 0) { if (page == 1) { this.setData({ diff --git a/project.config.json b/project.config.json index 6ebef3d..cb57fc4 100644 --- a/project.config.json +++ b/project.config.json @@ -18,13 +18,15 @@ "checkSiteMap": true, "uploadWithSourceMap": true, "compileHotReLoad": false, - "useMultiFrameRuntime": false, + "useMultiFrameRuntime": true, "useApiHook": true, + "useApiHostProcess": false, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" }, + "enableEngineNative": false, "bundle": false, "useIsolateContext": true, "useCompilerModule": false,