Browse Source

2023-03-14 fix

1. fix 光伏与风机 && -> ||
moccus 1 year ago
parent
commit
c91113378c
1 changed files with 5 additions and 2 deletions
  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] = [];