Sign in
apache
/
echarts-doc
/
5fcf831390fa2a3dd57ef128a41c3f9dc2ef246c
/
.
/
src
/
responsive.js
blob: 8811de61c6b044b6edfab0b897450d87b68a4793 [
file
] [
log
] [
blame
]
import
{
store
}
from
'./store'
;
function
handleResize
()
{
if
(
window
.
innerWidth
<
600
)
{
store
.
isMobile
=
true
;
}
else
{
store
.
isMobile
=
false
;
}
}
export
function
initResponsive
()
{
window
.
addEventListener
(
'resize'
,
handleResize
);
handleResize
();
}