From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/views/appcheck/index.jsx | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/views/appcheck/index.jsx b/src/views/appcheck/index.jsx index 7317ebb..8736e78 100644 --- a/src/views/appcheck/index.jsx +++ b/src/views/appcheck/index.jsx @@ -13,13 +13,6 @@ const _locale = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS const Header = asyncComponent(() => import('./header')) -let base_url = '' -if (process.env.NODE_ENV === 'production') { - base_url = document.location.origin + '/' + window.GLOB.service -} else { - base_url = window.GLOB.location + '/' + window.GLOB.service -} - const skinStyle = { bg_black_style_blue: {name: '钃濊壊', color: '#1890ff'}, bg_black_style_red: {name: '绾㈣壊', color: '#f5222d'}, @@ -67,13 +60,15 @@ func: 's_get_kei' } - param.rduri = window.GLOB.mainSystemApi + if (window.GLOB.mainSystemApi) { + param.rduri = window.GLOB.mainSystemApi + } this.setState({ loading: true }) - Api.getLocalConfig(param).then(result => { + Api.genericInterface(param).then(result => { if (result.status) { let selectApp = null let applist = result.data.map(item => { @@ -245,7 +240,7 @@ </Col> </Row> <div className="action"> - <Paragraph style={{display: 'inline-block', margin: 0}} copyable={{ text: `${base_url}${item.typename === 'pad' ? 'mob' : item.typename}/index.html#/index/${this.state.selectApp.kei_no}/${item.typename !== 'pc' ? item.typename + '/' : ''}${item.lang}` }}></Paragraph> + <Paragraph style={{display: 'inline-block', margin: 0}} copyable={{ text: `${window.GLOB.baseurl}${item.typename === 'pad' ? 'mob' : item.typename}/index.html#/index/${this.state.selectApp.kei_no}/${item.typename !== 'pc' ? item.typename + '/' : ''}${item.lang}` }}></Paragraph> </div> </div> ) -- Gitblit v1.8.0