Browse Source

修改报表过滤器

lichao 3 years ago
parent
commit
d5cf5d91f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filters/report.js

+ 1 - 1
src/filters/report.js

@@ -2,5 +2,5 @@
  * 文件名格式化
  */
 export function nameReportFormat(name) {
-  return name.match(/-(\S*).ureport.xml/)[1];
+  return name.includes('-')? name.match(/-(\S*).ureport.xml/)[1]: name.match(/(\S*).ureport.xml/)[1];
 }