commit
cf8e60e949
|
@ -5376,9 +5376,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/ezuikit-js": {
|
"node_modules/ezuikit-js": {
|
||||||
"version": "7.7.7",
|
"version": "7.7.10",
|
||||||
"resolved": "https://registry.npmjs.org/ezuikit-js/-/ezuikit-js-7.7.7.tgz",
|
"resolved": "https://registry.npmmirror.com/ezuikit-js/-/ezuikit-js-7.7.10.tgz",
|
||||||
"integrity": "sha512-VRkQN5u7bTdSwCqQYk3db7lR2kiXdCrMzr/rwmRZww8xqeXaghgttPjjI/kS+u/xVMAkl6hp9+47Yxs/zBRB8A=="
|
"integrity": "sha512-mpySnXY3F4LzW0R262IZIFBfp3fpDNVaB5UBAeO/IhofZii+2UD0p5Oc/2BrPfjADmcZnGCMOvJ92hlUMkk5EQ=="
|
||||||
},
|
},
|
||||||
"node_modules/fast-deep-equal": {
|
"node_modules/fast-deep-equal": {
|
||||||
"version": "3.1.3",
|
"version": "3.1.3",
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
<script src="../src/assets/js/ek.js"></script>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
|
|
20
src/App.vue
20
src/App.vue
|
@ -10,6 +10,16 @@
|
||||||
isMobile:false
|
isMobile:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
"$route"(newName, oldName) {
|
||||||
|
var routerNow = this.$route.name;
|
||||||
|
if(routerNow=='videoLive'){
|
||||||
|
this.isMobile=true
|
||||||
|
}else{
|
||||||
|
this.isMobile=false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
created(){
|
created(){
|
||||||
if (sessionStorage.getItem("store") ) { //在页面加载时读取sessionStorage里的状态信息
|
if (sessionStorage.getItem("store") ) { //在页面加载时读取sessionStorage里的状态信息
|
||||||
this.$store.replaceState(Object.assign({}, this.$store.state,JSON.parse(sessionStorage.getItem("store"))))
|
this.$store.replaceState(Object.assign({}, this.$store.state,JSON.parse(sessionStorage.getItem("store"))))
|
||||||
|
@ -17,15 +27,7 @@
|
||||||
window.addEventListener("beforeunload",()=>{ //在页面刷新时将vuex里的信息保存到sessionStorage里
|
window.addEventListener("beforeunload",()=>{ //在页面刷新时将vuex里的信息保存到sessionStorage里
|
||||||
sessionStorage.setItem("store",JSON.stringify(this.$store.state))
|
sessionStorage.setItem("store",JSON.stringify(this.$store.state))
|
||||||
})
|
})
|
||||||
if (
|
|
||||||
navigator.userAgent.match(
|
|
||||||
/(iPhone|iPod|Android|ios|iOS|iPad|Backerry|WebOS|Symbian|Windows Phone|Phone)/i
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
this.isMobile=true
|
|
||||||
} else {
|
|
||||||
this.isMobile=false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -240,7 +240,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.videoLive {
|
.videoLive {
|
||||||
width: 7.5rem;
|
width: 7.5rem;
|
||||||
|
|
Loading…
Reference in New Issue