|
@@ -44,14 +44,15 @@ export default {
|
|
|
methods: {
|
|
|
// 判断是否为chrome浏览器
|
|
|
handleUserAgentRoot() {
|
|
|
- if (navigator.userAgent.indexOf("Chrome") > -1) {
|
|
|
- localStorage.setItem("useragent_root_type", true);
|
|
|
- } else {
|
|
|
- localStorage.setItem("useragent_root_type", false);
|
|
|
+ if (
|
|
|
+ !sessionStorage.getItem("useragent_root_close") &&
|
|
|
+ navigator.userAgent.indexOf("Chrome") == -1
|
|
|
+ ) {
|
|
|
+ this.userAgentTipShow = true;
|
|
|
}
|
|
|
},
|
|
|
handleClickUserAgent() {
|
|
|
- localStorage.setItem("useragent_root_close", true);
|
|
|
+ sessionStorage.setItem("useragent_root_close", true);
|
|
|
this.userAgentTipShow = false;
|
|
|
},
|
|
|
},
|
|
@@ -72,28 +73,27 @@ body {
|
|
|
height: 100%;
|
|
|
min-width: 1200px;
|
|
|
}
|
|
|
-
|
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
|
-.userAgentTips{
|
|
|
- position: fixed;
|
|
|
- top: 62px;
|
|
|
- left: 50%;
|
|
|
- // width: 624px;
|
|
|
- margin-left: -312px;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 8px;
|
|
|
- padding: 12px 16px 12px 8px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 24px;
|
|
|
- :nth-child(1){
|
|
|
- margin-right: 8px;
|
|
|
- }
|
|
|
- :nth-child(3){
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
+.userAgentTips {
|
|
|
+ position: fixed;
|
|
|
+ top: 62px;
|
|
|
+ left: 50%;
|
|
|
+ // width: 624px;
|
|
|
+ margin-left: -312px;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 12px 16px 12px 8px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 24px;
|
|
|
+ :nth-child(1) {
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ :nth-child(3) {
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|