Commit 5844dbd9 by zhanghaozhe

myedit

parent cb524c05
......@@ -43,8 +43,8 @@
"detail.js": "/static/js/detail.1231b30b.chunk.js",
"detail.js.map": "/static/js/detail.1231b30b.chunk.js.map",
"main.css": "/static/css/main.be42277a.chunk.css",
"main.js": "/static/js/main.0f2f998d.chunk.js",
"main.js.map": "/static/js/main.0f2f998d.chunk.js.map",
"main.js": "/static/js/main.f05892af.chunk.js",
"main.js.map": "/static/js/main.f05892af.chunk.js.map",
"myorders.css": "/static/css/myorders.5434bc7e.chunk.css",
"myorders.js": "/static/js/myorders.db6f4295.chunk.js",
"myorders.js.map": "/static/js/myorders.db6f4295.chunk.js.map",
......@@ -91,7 +91,7 @@
"static/js/31.a98afee5.chunk.js": "/static/js/31.a98afee5.chunk.js",
"static/js/31.a98afee5.chunk.js.map": "/static/js/31.a98afee5.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.08d203a2b381ed76cce4c44b888f4163.js": "/precache-manifest.08d203a2b381ed76cce4c44b888f4163.js",
"precache-manifest.28ef4b56ecaed16a459b2c59eaa5d9a2.js": "/precache-manifest.28ef4b56ecaed16a459b2c59eaa5d9a2.js",
"service-worker.js": "/service-worker.js",
"static/css/24.257b0329.chunk.css.map": "/static/css/24.257b0329.chunk.css.map",
"static/css/26.1b3a6258.chunk.css.map": "/static/css/26.1b3a6258.chunk.css.map",
......
......@@ -112,12 +112,12 @@ self.__precacheManifest = [
"url": "/static/js/detail.1231b30b.chunk.js"
},
{
"revision": "2d912f6a969cc8b99875",
"revision": "246196d670b32e823106",
"url": "/static/css/main.be42277a.chunk.css"
},
{
"revision": "2d912f6a969cc8b99875",
"url": "/static/js/main.0f2f998d.chunk.js"
"revision": "246196d670b32e823106",
"url": "/static/js/main.f05892af.chunk.js"
},
{
"revision": "92e6701b001ea1417b68",
......@@ -212,16 +212,16 @@ self.__precacheManifest = [
"url": "/static/js/28.6db31585.chunk.js"
},
{
"revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0",
"url": "/static/media/iconfont.10b7bd5b.eot"
"revision": "55ad4bbcfbe7879698a2538de5145a09",
"url": "/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision": "3df38dc7a54f39248999",
"url": "/static/js/29.8d0f5030.chunk.js"
},
{
"revision": "55ad4bbcfbe7879698a2538de5145a09",
"url": "/static/media/iconfont.55ad4bbc.ttf"
"revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0",
"url": "/static/media/iconfont.10b7bd5b.eot"
},
{
"revision": "a88224351f48eb4dbc88",
......@@ -260,7 +260,7 @@ self.__precacheManifest = [
"url": "/static/css/24.257b0329.chunk.css"
},
{
"revision": "10ac7974441848299b438e8b3be9d428",
"revision": "1161baebbd1ad4d63e9d1fe23bff19a7",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.08d203a2b381ed76cce4c44b888f4163.js"
"/precache-manifest.28ef4b56ecaed16a459b2c59eaa5d9a2.js"
);
workbox.clientsClaim();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
import React, { PureComponent } from 'react';
function setSize() {
document.body.style.height = `${window.innerHeight}px`
document.getElementById('root').style.height = `${window.innerHeight}px`
document.documentElement.style.height = `${window.innerHeight}px`
}
export default function (WrappedComponent) {
return class extends PureComponent {
componentDidMount() {
document.body.style.height = `${window.innerHeight}px`
document.getElementById('root').style.height = `${window.innerHeight}px`
document.documentElement.style.height = `${window.innerHeight}px`
setSize()
window.addEventListener('resize', setSize)
}
componentWillUnmount() {
document.body.style.height = `auto`
document.getElementById('root').style.height = `auto`
document.documentElement.style.height = 'auto'
window.removeEventListener('resize', setSize)
}
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment