Commit 898701c4 authored by Ronny's avatar Ronny

支持xmind文件多tab,选第一个

parent 5a41e7f6
...@@ -69,7 +69,9 @@ KityMinder.registerProtocal( 'xmind', function () { ...@@ -69,7 +69,9 @@ KityMinder.registerProtocal( 'xmind', function () {
function xml2km(xml){ function xml2km(xml){
var json = $.xml2json(xml); var json = $.xml2json(xml);
var result = {}; var result = {};
processTopic(json.sheet.topic, result); var sheet = json.sheet;
var topic = utils.isArray(sheet) ? sheet[0].topic : sheet.topic;
processTopic(topic, result);
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment