提交 8ca6b87a authored 作者: ling's avatar ling

Fix head

上级 ce341a16
...@@ -141,6 +141,8 @@ ...@@ -141,6 +141,8 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "H5Index", name: "H5Index",
...@@ -151,7 +153,17 @@ export default { ...@@ -151,7 +153,17 @@ export default {
url: "https://www.yibovip613.com:34225/entry/login", url: "https://www.yibovip613.com:34225/entry/login",
}; };
}, },
created() { head() {
return {
script: [
{
src: "https://res.sharetrace.com/sharetrace.min.js",
},
],
};
},
mounted() {
setTimeout(function () {
ShareTrace.init({ ShareTrace.init({
appkey: "a4a9e45dc76e096a", appkey: "a4a9e45dc76e096a",
success: function () { success: function () {
...@@ -161,8 +173,8 @@ export default { ...@@ -161,8 +173,8 @@ export default {
console.log(msg); console.log(msg);
}, },
}); });
}, }, 1000);
mounted() {
const u = navigator.userAgent; const u = navigator.userAgent;
const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端 const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //android终端
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
......
...@@ -22,9 +22,6 @@ export default { ...@@ -22,9 +22,6 @@ export default {
{ hid: 'description', name: 'description', content: '' }, { hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' } { name: 'format-detection', content: 'telephone=no' }
], ],
script: [{
src: 'https://res.sharetrace.com/sharetrace.min.js'
}],
link: [ link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
], ],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论