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,