提交 370b3e71 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 c4a9382f
......@@ -9,10 +9,11 @@ export default class Before {
this.isMobile = /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA))
this.isIe = window.ActiveXObject || 'ActiveXObject' in window
this.isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime)
this.chromeVersion = 0
if (this.isChrome) {
this.chromeVersion = parseFloat(UA.match(/Chrome\/([\d.]+)/)[1])
}
// this.chromeVersion = 0
// if (this.isChrome) {
// const temp = UA.match(/Chrome\/([\d.]+)/)
// this.chromeVersion = temp ? parseFloat(temp[1]) : 0
// }
// this.notSupport = !this.isMobile && (this.isIe || (this.isChrome && this.chromeVersion < 70))
this.notSupport = !this.isMobile && this.isIe
// https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser
......
......@@ -9,7 +9,7 @@
{{ $t('components.learnSysLayout.navigation.tip') }}
<div class="num" v-if="this.$store.getters.myMsg != 0">{{ this.$store.getters.myMsg }}</div>
</div>
<language-switch />
<!-- <language-switch /> -->
</div>
</div>
</template>
......
<template>
<div class="pages">
<div class="head">
<img class="logo" src="../../assets/images/logo-header.png" />
<img class="logo" src="https://zws-imgs-pub.ezijing.com/pc/base/logo.svg" />
<div class="language" style="overflow: hidden">
<language-switch style="float: right" />
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论