Commit 49b5b42b by chenshu

fix:修复

parent 00ae188b
...@@ -138,7 +138,7 @@ export default function KnowledgeBaseOpt({ ...@@ -138,7 +138,7 @@ export default function KnowledgeBaseOpt({
ids: selectedRowKeys, ids: selectedRowKeys,
storeId: User.getStoreId(), storeId: User.getStoreId(),
}; };
Service.Hades('public/hades/batchMoveKnowledgeCategory', data).then((res) => { Service.Hades('public/hades/batchMoveKnowledgeCategory', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('移动成功'); message.success('移动成功');
onChange(); onChange();
...@@ -170,7 +170,7 @@ export default function KnowledgeBaseOpt({ ...@@ -170,7 +170,7 @@ export default function KnowledgeBaseOpt({
ids: selectedRowKeys, ids: selectedRowKeys,
storeId: User.getStoreId(), storeId: User.getStoreId(),
}; };
Service.Hades('public/hades/batchDelKnowledge', data).then((res) => { Service.Hades('public/hades/batchDelKnowledge', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('删除成功'); message.success('删除成功');
onChange(); onChange();
......
...@@ -440,7 +440,7 @@ class PaperList extends Component { ...@@ -440,7 +440,7 @@ class PaperList extends Component {
tenantId: User.getStoreId(), tenantId: User.getStoreId(),
userId: User.getUserId(), userId: User.getUserId(),
}; };
Service.Hades('public/hades/batchMovePaperCategory', data).then((res) => { Service.Hades('public/hades/batchMovePaperCategory', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('移动成功'); message.success('移动成功');
this.queryPaperPageList(); this.queryPaperPageList();
...@@ -475,7 +475,7 @@ class PaperList extends Component { ...@@ -475,7 +475,7 @@ class PaperList extends Component {
tenantId: User.getStoreId(), tenantId: User.getStoreId(),
userId: User.getUserId(), userId: User.getUserId(),
}; };
Service.Hades('public/hades/batchDeletePaper', data).then((res) => { Service.Hades('public/hades/batchDeletePaper', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('删除成功'); message.success('删除成功');
this.queryPaperPageList(); this.queryPaperPageList();
......
...@@ -523,7 +523,7 @@ class QuestionList extends Component { ...@@ -523,7 +523,7 @@ class QuestionList extends Component {
tenantId: User.getStoreId(), tenantId: User.getStoreId(),
userId: User.getUserId(), userId: User.getUserId(),
}; };
Service.Hades('public/hades/batchMoveQuestion', data).then((res) => { Service.Hades('public/hades/batchMoveQuestion', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('移动成功'); message.success('移动成功');
Bus.trigger('queryCategoryTree', 'init'); Bus.trigger('queryCategoryTree', 'init');
...@@ -558,7 +558,7 @@ class QuestionList extends Component { ...@@ -558,7 +558,7 @@ class QuestionList extends Component {
tenantId: User.getStoreId(), tenantId: User.getStoreId(),
userId: User.getUserId(), userId: User.getUserId(),
}; };
Service.Hades('public/hades/batchDeleteQuestion', data).then((res) => { Service.Hades('public/hades/batchDeleteQuestion', data, { reject: true }).then((res) => {
if (res.success) { if (res.success) {
message.success('删除成功'); message.success('删除成功');
Bus.trigger('queryCategoryTree', 'init'); Bus.trigger('queryCategoryTree', 'init');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment