提交代码

prv
姜玉琦 2023-12-25 00:51:24 +08:00
parent 5ffbb82f11
commit e711aa172f
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import request from '@/utils/request'
const findProjectByDept=(deptId)=> {
return request({
url: `bgscreen/project/findProjectByDept?deptId=${deptId}`,
url: `bgscreen/project/findProjectByDept?deptId=${deptId||0}`,
method: 'get'
})
}

View File

@ -189,7 +189,7 @@ Vue.component("screen-header", {
this.loadProject();
},
loadProject(init){
this.$api.project.findProjectByDept( this.localStorage1.id).then(d=>{
this.$api.project.findProjectByDept(this.localStorage1.id||0).then(d=>{
let objs=(d?.data||[]).map(it=>{
it.text=it.projectName;
return it;