소스 검색

2023-03-14 fix

1. fix 光伏与风机 && -> ||
moccus 1 년 전
부모
커밋
c91113378c
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/components/allMatrices.vue

+ 5 - 2
src/components/allMatrices.vue

@@ -729,8 +729,11 @@ export default {
         let wswind = JSON.parse(window.sessionStorage.getItem('wind'))
         let pv = JSON.parse(window.sessionStorage.getItem('pv'))
         let msg = {}
-        if (wswind && pv) {
-            msg = {...wswind, ...pv}
+        if (wswind || pv) {
+            msg = {...wswind}
+            if(pv){
+              msg = {...msg, ...pv}
+            }
             let stationArr = [];
             for (const key in this.stationObj) {
                 this.stationObj[key] = [];