Explorar el Código

海报标题去除换行符

lifuxiong hace 4 años
padre
commit
5c134fd8a2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/poster.js

+ 1 - 1
utils/poster.js

@@ -89,7 +89,7 @@ export default class Poster {
           case "content":
             canvasObj.views.push({
               type: "text",
-              text: what,
+              text: what.replace(/[\r\n]/g, ""),
               css: {
                 left: `${left}px`,
                 top: `${top}px`,