在public 的index.html的head标签内添加以下代码即可
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0,minimal-ui">
<meta name="browsermode" content="application">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta name="wap-font-scale" content="no">
<meta name="nightmode" content="disable">
<meta name="imagemode" content="force">
<meta name="x5-page-mode" content="app">
<meta name="x5-orientation" content="portrait">
<meta name="x5-fullscreen" content="true">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="browsermode" content="application">
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta name="wap-font-scale" content="no">
<meta name="nightmode" content="disable">
<meta name="imagemode" content="force">
<meta name="x5-page-mode" content="app">
<meta name="x5-orientation" content="portrait">
<meta name="x5-fullscreen" content="true">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />