Commit d1e3a6a4 by 展昭

每次进入时把当前账期索引清零

parent ead364d7
Showing with 2 additions and 7 deletions
......@@ -477,16 +477,11 @@ export default {
},
initMonth() {
const localPerIndex = this.getCurPerIndex;
localPerIndex=0;
if (localPerIndex && localPerIndex != "undefined") {
localPerIndex=localPerIndex>this.period.length-1?this.period.length-1:localPerIndex;
localPerIndex=localPerIndex>this.period.length-1?0:localPerIndex;
this.currentPerIndex = localPerIndex;
this.currentPerId = this.period[localPerIndex].id;
if(this.currentPerId=='2958927'){
const VConsole = require('vconsole')
const my_console = new VConsole();
}
this.currentPerName = this.period[localPerIndex].name;
this.savePerBeginDate(this.period[localPerIndex].beginDate);
} else {
......
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 sign in to comment