瀏覽代碼

fix:分析设置移除换行符

yangfeng 3 年之前
父節點
當前提交
1255e3a7af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/web/staticres/common-module/big-member/js/high_set.js

+ 1 - 1
src/web/staticres/common-module/big-member/js/high_set.js

@@ -368,7 +368,7 @@ var highSet = new Vue({
     },
     onKeywords: function (val) {
       // 过滤首个空格
-      this.conf.keywords = val.replace(/^\s\s*/,'')
+      this.conf.keywords = val.replace(/^\s\s*/,'').replace(/(\r\n)|(\n)/g, '')
     },
     onCancel: function (data) {
       if (!data) {