|
@@ -129,7 +129,8 @@ class StageIm {
|
|
|
_getNumberFormat(num, length) {
|
|
|
let s = '0000000000';
|
|
|
s = s + num;
|
|
|
- return s.substr(s.length - length);
|
|
|
+ const numLength = num.toString().length;
|
|
|
+ return s.substr(s.length - Math.max(length, numLength));
|
|
|
}
|
|
|
_getNodeByLevel(node, level) {
|
|
|
let cur = node;
|