gui:fix a bug

This commit is contained in:
echo 2018-01-09 21:20:36 +08:00
parent 4db9583e41
commit d1a937628c

View File

@ -13,11 +13,7 @@ var exportM = new Vue({
methods: { methods: {
exportMap: function(){ exportMap: function(){
editor.updateMap(); editor.updateMap();
if(editArea.error) {
tip.whichShow = 3;
return;
}
var filestr=''; var filestr='';
for (var yy = 0; yy < 13; yy++){ for (var yy = 0; yy < 13; yy++){
filestr+='[' filestr+='['
@ -42,7 +38,8 @@ var exportM = new Vue({
filestr += ']'+(yy==12?'':',\n'); filestr += ']'+(yy==12?'':',\n');
} }
pout.value = filestr; pout.value = filestr;
editArea.mapArr = filestr;
editArea.error = 0;
tip.whichShow = 2; tip.whichShow = 2;
} }
} }