Prechádzať zdrojové kódy

fix(base-D1/D2): lockfile 再生同步 plyr 清理 + configurable/index.vue 补最后一个定时器句柄赋值

- D1: QA 实测 pnpm install 再生的 lockfile(plyr 清零),避免 CI frozen-lockfile 失败
- D2: 首页 60s 轮询补 interval 赋值——与批次1同模式的最后遗漏(QA A3 复核发现)
86132 1 týždeň pred
rodič
commit
7617a39e80
2 zmenil súbory, kde vykonal 7 pridanie a 39 odobranie
  1. 5 38
      pnpm-lock.yaml
  2. 2 1
      src/views/vent/home/configurable/index.vue

+ 5 - 38
pnpm-lock.yaml

@@ -140,9 +140,6 @@ importers:
       pinia:
         specifier: 2.1.6
         version: 2.1.6(typescript@4.9.5)(vue@3.5.40(typescript@4.9.5))
-      plyr:
-        specifier: ^3.7.8
-        version: 3.8.4
       print-js:
         specifier: ^1.6.0
         version: 1.6.0
@@ -359,7 +356,7 @@ importers:
         version: 11.3.6
       http-server:
         specifier: ^14.1.1
-        version: 14.1.1(debug@4.4.3)
+        version: 14.1.1
       husky:
         specifier: ^8.0.3
         version: 8.0.3
@@ -488,6 +485,7 @@ packages:
 
   '@aesoper/normal-utils@0.1.5':
     resolution: {integrity: sha512-LFF/6y6h5mfwhnJaWqqxuC8zzDaHCG62kMRkd8xhDtq62TQj9dM17A9DhE87W7DhiARJsHLgcina/9P4eNCN1w==}
+    deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
 
   '@ampproject/remapping@2.3.0':
     resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
@@ -3424,9 +3422,6 @@ packages:
     resolution: {integrity: sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==}
     engines: {node: '>=0.10.0'}
 
-  custom-event-polyfill@1.0.7:
-    resolution: {integrity: sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w==}
-
   cwebp-bin@6.1.2:
     resolution: {integrity: sha512-NLEZ/BVAl9g426hwUX/qrQ7b/EfQH7BS1tr+CzPo2EgDQbcdzmUVE+fIfsi64lsL638lWgzTEViMAL4pxV1GOg==}
     engines: {node: '>=10'}
@@ -5854,9 +5849,6 @@ packages:
     resolution: {integrity: sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==}
     engines: {node: '>=4.0.0'}
 
-  loadjs@4.3.0:
-    resolution: {integrity: sha512-vNX4ZZLJBeDEOBvdr2v/F+0aN5oMuPu7JTqrMwp+DtgK+AryOlpy6Xtm2/HpNr+azEa828oQjOtWsB6iDtSfSQ==}
-
   local-pkg@1.2.1:
     resolution: {integrity: sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==}
     engines: {node: '>=14'}
@@ -6695,9 +6687,6 @@ packages:
   pkg-types@2.3.1:
     resolution: {integrity: sha512-y+ichcgc2LrADuhLNAx8DFjVfgz91pRxfZdI3UDhxHvcVEZsenLO+7XaU5vOp0u/7V/wZ+plyuQxtrDlZJ+yeg==}
 
-  plyr@3.8.4:
-    resolution: {integrity: sha512-DrzLbK9Wol3zeiuZCleD9aUOl0KAaBHR9H6WVVVYPZ4Ya+LYxUFTgSF1jooHcMQCv96Ws96wCaZzIoP3bES8pQ==}
-
   pngjs@5.0.0:
     resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==}
     engines: {node: '>=10.13.0'}
@@ -6912,9 +6901,6 @@ packages:
   raf@3.4.1:
     resolution: {integrity: sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==}
 
-  rangetouch@2.0.1:
-    resolution: {integrity: sha512-sln+pNSc8NGaHoLzwNBssFSf/rSYkqeBXzX1AtJlkJiUaVSJSbRAWJk+4omsXkN+EJalzkZhWQ3th1m0FpR5xA==}
-
   react-is@17.0.2:
     resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
 
@@ -8057,9 +8043,6 @@ packages:
   url-parse@1.5.10:
     resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==}
 
-  url-polyfill@1.1.14:
-    resolution: {integrity: sha512-p4f3TTAG6ADVF3mwbXw7hGw+QJyw5CnNGvYh5fCuQQZIiuKUswqcznyV3pGDP9j0TSmC4UvRKm8kl1QsX1diiQ==}
-
   url-to-options@1.0.1:
     resolution: {integrity: sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==}
     engines: {node: '>= 4'}
@@ -12276,8 +12259,6 @@ snapshots:
     dependencies:
       array-find-index: 1.0.2
 
-  custom-event-polyfill@1.0.7: {}
-
   cwebp-bin@6.1.2:
     dependencies:
       bin-build: 3.0.0
@@ -14010,7 +13991,7 @@ snapshots:
     transitivePeerDependencies:
       - supports-color
 
-  http-proxy@1.18.1(debug@4.4.3):
+  http-proxy@1.18.1:
     dependencies:
       eventemitter3: 4.0.7
       follow-redirects: 1.16.0(debug@4.4.3)
@@ -14018,14 +13999,14 @@ snapshots:
     transitivePeerDependencies:
       - debug
 
-  http-server@14.1.1(debug@4.4.3):
+  http-server@14.1.1:
     dependencies:
       basic-auth: 2.0.1
       chalk: 4.1.2
       corser: 2.0.1
       he: 1.2.0
       html-encoding-sniffer: 3.0.0
-      http-proxy: 1.18.1(debug@4.4.3)
+      http-proxy: 1.18.1
       mime: 1.6.0
       minimist: 1.2.8
       opener: 1.5.2
@@ -15405,8 +15386,6 @@ snapshots:
       emojis-list: 3.0.0
       json5: 1.0.2
 
-  loadjs@4.3.0: {}
-
   local-pkg@1.2.1:
     dependencies:
       mlly: 1.8.2
@@ -16223,14 +16202,6 @@ snapshots:
       exsolve: 1.1.0
       pathe: 2.0.3
 
-  plyr@3.8.4:
-    dependencies:
-      core-js: 3.49.0
-      custom-event-polyfill: 1.0.7
-      loadjs: 4.3.0
-      rangetouch: 2.0.1
-      url-polyfill: 1.1.14
-
   pngjs@5.0.0: {}
 
   pngquant-bin@6.0.1:
@@ -16443,8 +16414,6 @@ snapshots:
       performance-now: 2.1.0
     optional: true
 
-  rangetouch@2.0.1: {}
-
   react-is@17.0.2: {}
 
   react-is@18.3.1: {}
@@ -17712,8 +17681,6 @@ snapshots:
       querystringify: 2.2.0
       requires-port: 1.0.0
 
-  url-polyfill@1.1.14: {}
-
   url-to-options@1.0.1: {}
 
   use@3.1.1: {}

+ 2 - 1
src/views/vent/home/configurable/index.vue

@@ -87,7 +87,8 @@
 
       getHomeData({}).then(updateData);
     });
-    setInterval(() => {
+    // [perf-base-v1 base-D2] 补句柄赋值(原裸 setInterval 导致 clearInterval 无效、轮询泄漏)
+    interval = window.setInterval(() => {
       getHomeData({}).then(updateData);
     }, 60000);
   });