fix:修改学习路径默认归属权

This commit is contained in:
lixg
2022-12-03 11:57:54 +08:00
parent 9568dade0e
commit ac181d97fa
5 changed files with 92 additions and 201 deletions

View File

@@ -702,6 +702,7 @@ import { message } from "ant-design-vue";
import {
toDate,
commonData,
changeOwnership,
// setCookie
} from "../../api/method";
import { storage } from "../../api/storage";
@@ -1464,6 +1465,15 @@ export default {
.catch((chapterErr) => {
console.log("关卡创建失败", chapterErr);
});
//添加归属权 [id: '966735050643083264', name: '丁舟航']
let selectPeopleArr = [
{ id: res.data.data.createId, name: res.data.data.createName },
];
changeOwnership(
"learnPath",
res.data.data.routerId,
selectPeopleArr
);
}
})
.catch((err) => {
@@ -1471,6 +1481,7 @@ export default {
// state.createLoading = false;
});
};
//获取学习路径列表
const getLearnPath = () => {
let obj = {