Browse Source

切割字符串

zhengnaiwen_citu 1 month ago
parent
commit
2ae6a19f76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/dataFactory/productionLineMonitor/index.vue

+ 1 - 1
src/views/dataFactory/productionLineMonitor/index.vue

@@ -457,7 +457,7 @@ export default {
           try_number: item.try_number
         })
 
-        this.log.data = data.log.split('\n')
+        this.log.data = data.log.replace(/\\n/g, '\n').split('\n')
       } catch (error) {
         this.$snackbar.error(error)
       } finally {