Browse Source

Merge branch 'dev' of http://git.echepei.com/caojunjie/Smart_platform_ui into dev

QuKatie 3 years ago
parent
commit
c8f8929e44
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];
 }