Explorar el Código

开发环境,配置使用https

sw hace 3 días
padre
commit
67d17808b9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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, // 可选:指定端口号