Sfoglia il codice sorgente

开发环境,配置使用https

sw 3 giorni fa
parent
commit
67d17808b9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      config/dev.ts

+ 1 - 0
config/dev.ts

@@ -27,6 +27,7 @@ export default {
           // }
         },
       },
+      server: 'https',  // 启用 HTTPS ,为了开发环境测试打开摄像头功能
       host: '0.0.0.0', // 监听所有网络接口
       open: false, // 可选:是否自动打开浏览器
       port: 10086, // 可选:指定端口号