Commit cfea14c6 authored by Maofei94's avatar Maofei94

fix: 网关配置

parent ad6df872
Pipeline #22276 passed with stages
in 19 minutes 7 seconds
......@@ -87,11 +87,14 @@ const Login = props => {
const updateDicName = () => {
gateWayConfig()
.then(res => {
if (res.code === 0 && res.data) {
if (res.code === 0 && res.data === 'true') {
localStorage.setItem('panda-publish', 'getway');
} else {
localStorage.setItem('panda-publish', '');
}
})
.catch(err => {
localStorage.setItem('panda-publish', '');
console.error(err);
});
};
......
......@@ -269,7 +269,8 @@ const WebConfigPage = props => {
<TabPane key={99} tab="产品配置" closable={false}>
<ProductConfig />
</TabPane>
{webs.map(renderTabPane)}
{/* {webs.map(renderTabPane)} */}
{webs.map(item => renderTabPane(item))}
</Tabs>
<SiteConfig
isEdit={isEdit}
......
......@@ -61,16 +61,7 @@ const AddForm = props => {
<Item label="菜单别名" name="shortName">
<Input placeholder="请输入菜单别名" />
</Item>
<Item
label="产品类型:"
name="product"
rules={[
{
required: true,
message: '请选择产品类型',
},
]}
>
<Item label="产品类型:" name="product">
<Select placeholder="请选择产品类型">
{productList &&
productList.map(item => (
......
......@@ -7,13 +7,9 @@ const MenuConfig = props => {
const { menu } = props;
return (
<>
{menu ? (
<div split="vertical">
<WebMenu {...props} />
</div>
) : (
<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
)}
<div split="vertical">
<WebMenu {...props} />
</div>
</>
);
};
......
......@@ -6,6 +6,7 @@ import EditeConfigWrapper from './editConfigFileWrapper';
import CheckList from './checkBox';
const { Item } = Form;
const { Option } = Select;
const EditForm = props => {
const {
submitCallback,
......@@ -71,16 +72,7 @@ const EditForm = props => {
<Item label="菜单别名" name="shortName">
<Input placeholder="请输入菜单别名" />
</Item>
<Item
label="产品类型:"
name="product"
rules={[
{
required: true,
message: '请选择产品类型',
},
]}
>
<Item label="产品类型:" name="product">
<Select placeholder="请选择产品类型">
{productList &&
productList.map(item => (
......
......@@ -35,7 +35,7 @@ axios.interceptors.request.use( function (request){
request.headers.Authorization = 'Bearer ' + token
}
if(pandaPublish){
if(request.url!='/Publish/OMS/OMSLogin'&&request.url!='/Publish/OMS/FileCenter/SaveMobileApk')
if(request.url!='/Publish/OMS/OMSLogin'&&request.url!='/Publish/OMS/FileCenter/SaveMobileApk'&&request.url!='/Publish/OMS/GateWayConfig')
request.url=getWay+request.url
}
console.log(request,pandaPublish)
......
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