uniapp启动H5,配置内网域名访问

uni-app 中  manifest.json文件进行配置
"h5" : {
      "devServer": {
          "port": 8888,
          "historyApiFallback": true,
          "host": "0.0.0.0",
          "disableHostCheck": true,
          "noInfo": true
      },
 
      "router":{  
        "mode":"history"  
      }  
}

你可能感兴趣的:(跨平台技术)