Explorar el Código

切割字符串

zhengnaiwen_citu hace 1 mes
padre
commit
2ae6a19f76
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {