fix bug
This commit is contained in:
parent
c7a437e8a8
commit
524c8be9a8
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
var exportM = new Vue({
|
var exportM = new Vue({
|
||||||
el: '#exportM',
|
el: '#exportM',
|
||||||
|
data: {
|
||||||
|
isExport: false,
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
exportMap: function(){
|
exportMap: function(){
|
||||||
editor.updateMap();
|
editor.updateMap();
|
||||||
@ -31,7 +33,8 @@ var exportM = new Vue({
|
|||||||
filestr += ']'+(yy==12?'':',\n');
|
filestr += ']'+(yy==12?'':',\n');
|
||||||
}
|
}
|
||||||
pout.value = filestr;
|
pout.value = filestr;
|
||||||
// editArea.mapArr = filestr;
|
editArea.mapArr = filestr;
|
||||||
|
this.isExport = true;
|
||||||
editArea.error = 0;
|
editArea.error = 0;
|
||||||
tip.whichShow = 2;
|
tip.whichShow = 2;
|
||||||
}
|
}
|
||||||
@ -54,6 +57,10 @@ var editArea = new Vue({
|
|||||||
mapArr: function (val, oldval) {
|
mapArr: function (val, oldval) {
|
||||||
var that = this;
|
var that = this;
|
||||||
if(val=='') return;
|
if(val=='') return;
|
||||||
|
if(exportM.isExport){
|
||||||
|
exportM.isExport = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(that.formatArr()){
|
if(that.formatArr()){
|
||||||
that.error = 0;
|
that.error = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user