Parcourir la source

切割字符串

zhengnaiwen_citu il y a 1 mois
Parent
commit
2ae6a19f76
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {