fix: 资产管理区分主子阵地v1.0
							parent
							
								
									1d79aa9a9b
								
							
						
					
					
						commit
						36fb3c8627
					
				| 
						 | 
					@ -37,7 +37,7 @@ export default {
 | 
				
			||||||
    async function init() {
 | 
					    async function init() {
 | 
				
			||||||
      const res = await getSysconfQueryByCode({ code: 'isLeaderPosition' })
 | 
					      const res = await getSysconfQueryByCode({ code: 'isLeaderPosition' })
 | 
				
			||||||
      if (!res.success) return
 | 
					      if (!res.success) return
 | 
				
			||||||
      isLeaderPosition.value = res.data.value
 | 
					      isLeaderPosition.value = res.data.value === 'true'
 | 
				
			||||||
      addStorageEvent('isLeaderPosition', res.data.value)
 | 
					      addStorageEvent('isLeaderPosition', res.data.value)
 | 
				
			||||||
      if (isLeaderPosition.value) {
 | 
					      if (isLeaderPosition.value) {
 | 
				
			||||||
        const res = await getDictChildren({ value: 'POSITION_DATA' })
 | 
					        const res = await getDictChildren({ value: 'POSITION_DATA' })
 | 
				
			||||||
| 
						 | 
					@ -49,6 +49,8 @@ export default {
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          ...res.data
 | 
					          ...res.data
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        addStorageEvent('selectPostion', '')
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    init()
 | 
					    init()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue