fix:路径图和项目编辑时原名字显示冲突问题

This commit is contained in:
wyx
2023-03-08 01:11:33 +08:00
parent 32601f080b
commit d78f47d795
3 changed files with 34 additions and 5 deletions

View File

@@ -335,6 +335,7 @@
v-model:validated="validated"
:maxlength="20"
show-count
:onceName="onceName"
:type="3"
:id="editPathId"
></NameInput>
@@ -824,6 +825,7 @@ export default {
//
//创建、编辑-------------------------
pathName: "", //创建/编辑路径图名称
onceName: "",
organizationList: [
// {
// id: 1,
@@ -903,6 +905,7 @@ export default {
// console.log("打开创建路径弹窗");
state.confirmLoading = false;
state.pathName = "";
state.onceName = "";
state.pathBg = "";
state.pathBgId = "";
state.pathIntro = "";
@@ -914,6 +917,7 @@ export default {
};
const handleOut1 = () => {
state.pathName = "";
state.onceName = "";
state.pathBg = "";
state.pathBgId = 1;
state.organizationSelectName = null;
@@ -1532,6 +1536,7 @@ export default {
console.log("获取学习路径详情成功", res.data.data);
let detail = res.data.data.routerInfo;
state.pathName = detail.name;
state.onceName = detail.name;
state.pathBg = detail.picUrl;
state.mobilePicUrl = detail.mobilePicUrl;
state.pathBgId = "";