Преглед изворни кода

模板名称保存判断bug2325

luolei пре 5 година
родитељ
комит
d95e43bbd2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/store/async-actions/tabTemplate.js

+ 2 - 2
src/store/async-actions/tabTemplate.js

@@ -134,8 +134,8 @@ export const changeTitleAsync = (obj) => { //改标题
   let baseList = store.getState();
   let whichSign = baseList.typeConfig.typeConfig;
   let state = baseList.patInfo.message;
-  if (obj.title == '') {
-    Notify.success('请输入模板名称');
+  if (obj.title.trim() == '') {
+    Notify.info('请输入模板名称');
     return;
   }
   return (dispatch) => {