Ver código fonte

windy改为https访问,解决打包后无法访问该页面的问题

tl 6 meses atrás
pai
commit
6f8380c21b
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      cpp-ui/src/views/windy/index.vue

+ 3 - 3
cpp-ui/src/views/windy/index.vue

@@ -4,7 +4,7 @@
       scrolling="auto"
       frameborder="no"
       style="width: 100%; height: 100%"
-      :src="url" />
+      :src="url"/>
   </div>
 
 </template>
@@ -15,7 +15,7 @@ export default {
   data() {
     return {
       height: document.documentElement.clientHeight - 45.5 + "px;",
-      url: "http://192.168.1.34:8000/"
+      url: "https://192.168.1.34:8000/"
       // url:process.env.VUE_APP_BASE_API + "/static/windy.html"
     };
   },
@@ -25,7 +25,7 @@ export default {
     }, 300);
     const that = this;
     window.onresize = function temp() {
-      that.height = document.documentElement.clientHeight - 45.5  + "px;";
+      that.height = document.documentElement.clientHeight - 45.5 + "px;";
     };
   }
 };