From 4b18ab4bf4eff4383bd85beb76564dc6aeb1df86 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 26 一月 2021 19:11:26 +0800 Subject: [PATCH] 2021-01-26 --- src/tabviews/home/index.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tabviews/home/index.jsx b/src/tabviews/home/index.jsx index b53c5bd..26fbcd0 100644 --- a/src/tabviews/home/index.jsx +++ b/src/tabviews/home/index.jsx @@ -16,10 +16,15 @@ state = { loading: true, + background: sessionStorage.getItem('home_background'), view: '' } componentDidMount () { + this.loadHomeConfig() + } + + loadHomeConfig = () => { let _param = { func: 'sPC_Get_LongParam', MenuID: this.props.MenuID @@ -52,10 +57,10 @@ } render() { - const { loading, view } = this.state + const { loading, view, background } = this.state if (loading) { - return (<Spin className="home-box-spin" size="large" />) + return (<div className="home-loading-view" style={{background: background}}><Spin className="home-box-spin" size="large" /></div>) } else if (view === 'custom') { return (<CustomPage MenuID={this.props.MenuID}/>) } else { -- Gitblit v1.8.0