mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
-- fix bug
This commit is contained in:
@@ -1419,7 +1419,6 @@ export default {
|
||||
// state.imgData = ;
|
||||
// }
|
||||
});
|
||||
debugger
|
||||
const imgData = computed(() => store.state.router_pic);
|
||||
//添加权限
|
||||
watch(
|
||||
@@ -1477,13 +1476,12 @@ export default {
|
||||
state.organizationSelectId = detail.organizationId;
|
||||
state.pathIntro = detail.remark;
|
||||
state.editPathId = id;
|
||||
let arr = imgData.value;
|
||||
arr.forEach((item) => {
|
||||
if (item.value === state.pathBg) {
|
||||
state.pathBgId = item.code;
|
||||
|
||||
}
|
||||
});
|
||||
const imgDict = imgData.value.find((img)=>img.value.split(',')[0] === state.pathBg)
|
||||
if(imgDict){
|
||||
state.pathBgId = imgDict.code;
|
||||
state.pathBg = imgDict.value.split(',')[0];
|
||||
state.mobilePicUrl = imgDict.value.split(',')[1];
|
||||
}
|
||||
|
||||
//for (let i = 0; i < arr.length; i++) {
|
||||
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
|
||||
|
||||
Reference in New Issue
Block a user