zhangxc 5 лет назад
Родитель
Сommit
384c6e61ad
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/store/async-actions/tabTemplate.js

+ 4 - 1
src/store/async-actions/tabTemplate.js

@@ -384,6 +384,7 @@ export const changeTitleAsyncAdmin = (obj) => { //改标题
         dispatch(changeTitleAdmin(obj));
         Notify.success('标题修改成功');
         store.dispatch(changeVisible(false))
+        dispatch(getFloderListAll())
       } else {
         // console.log(data)
         Notify.error(data.msg)
@@ -402,13 +403,15 @@ export const changeTitleAsync = (obj) => { //改标题
       "hospitalId": state.hospitalId,
       "id": obj.id,
       "modeName": obj.title,
-      "type": whichSign
+      "type": whichSign,
+      "spell": obj.spell
     }).then((res) => {
       let data = res.data;
       if (data.code == 0) {
         dispatch(changeTitle(obj));
         Notify.success('标题修改成功');
         store.dispatch(changeVisible(false))
+        store.dispatch(initCommonItemList(1,""))
       } else {
         // console.log(data)
         Notify.error(data.msg)