Sfoglia il codice sorgente

feat(云机分辨率): 忽略相同分辨率

zengzhixiang 3 anni fa
parent
commit
5bcb15d6c5

+ 3 - 0
static/screenAndroid/WXtrialInterface.html

@@ -1795,6 +1795,9 @@
       //   centeredSlides: true,
       // });
       function setPhoneSize(config) {
+        if (config.id === currentPhoneSize.id) {
+          return;
+        }
         // config = Object.assign({}, config, {
         //   width: config.width,
         //   height: config.height,

+ 3 - 0
static/screenIos/WXtrialInterface.html

@@ -1597,6 +1597,9 @@
       //   centeredSlides: true,
       // });
       function setPhoneSize(config) {
+        if (config.id === currentPhoneSize.id) {
+          return;
+        }
         // config = Object.assign({}, config, {
         //   width: config.width,
         //   height: config.height,