Ver Fonte

fix h5 title and favicon.ico

yichael há 4 anos atrás
pai
commit
5214fed1a1
4 ficheiros alterados com 35 adições e 4 exclusões
  1. 9 3
      manifest.json
  2. 1 1
      pages.json
  3. BIN
      static/ico/favicon.ico
  4. 25 0
      static/main.html

+ 9 - 3
manifest.json

@@ -1,6 +1,6 @@
 {
-    "name" : "ZhongChuang",
-    "appid" : "",
+    "name" : "戏剧影视美术XR创作",
+    "appid" : "__UNI__210CF7C",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -88,6 +88,12 @@
         "devServer" : {
             "port" : 9902
         },
-        "domain" : "www.yuyekeji.cn"
+        "domain" : "www.yuyekeji.cn",
+        "template" : "static/main.html",
+        "optimization" : {
+            "treeShaking" : {
+                "enable" : true
+            }
+        }
     }
 }

+ 1 - 1
pages.json

@@ -11,7 +11,7 @@
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "uni-app",
+		"navigationBarTitleText": "戏剧影视美术XR创作",
 		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8"
 	}

BIN
static/ico/favicon.ico


+ 25 - 0
static/main.html

@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+    <head>
+	
+		<link rel="icon" href="<%= BASE_URL %>static/ico/favicon.ico">
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>
+            <%= htmlWebpackPlugin.options.title %>
+        </title>
+		
+        <script>
+            var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
+            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
+        </script>
+        <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
+    </head>
+    <body>
+        <noscript>
+            <strong>Please enable JavaScript to continue.</strong>
+        </noscript>
+        <div id="app"></div>
+        <!-- built files will be auto injected -->
+    </body>
+</html>