Commit de8c4706 authored by 涂伟's avatar 涂伟

fix: 'mobile配置逻辑优化'

parent 212f649c
Pipeline #74352 passed with stages
import React, { useState, useEffect } from 'react';
import { Form, Select, Input, Button, Radio, notification, Spin } from 'antd';
import { Form, Select, Input, Button, Radio, notification, Spin, Tag } from 'antd';
import { editWebsite, getWebsite, addWebsite } from '@/services/mobileConfig/api';
import PicturesWall from '@/components/Upload/index';
import { stripBasename } from 'history/pathutils';
......@@ -188,6 +188,11 @@ const SiteConfig = props => {
{loginList &&
loginList.map((item, index) => (
<Option value={item.value} key={`item${index}`}>
{item.value.includes('h5') ? (
<Tag color="green">h5</Tag>
) : (
<Tag color="blue">flutter</Tag>
)}
{item.text}
</Option>
))}
......@@ -207,6 +212,11 @@ const SiteConfig = props => {
{h5LoginList &&
h5LoginList.map((item, index) => (
<Option value={item.value} key={`item${index}`}>
{item.value.includes('h5') ? (
<Tag color="green">h5</Tag>
) : (
<Tag color="blue">flutter</Tag>
)}
{item.text}
</Option>
))}
......
import React, { useState, useEffect } from 'react';
import { Form, Select, Input, Button, Radio, notification, Spin } from 'antd';
import { Form, Select, Input, Button, Radio, notification, Spin, Tag } from 'antd';
import { editWebsite, getWebsite, addWebsite } from '@/services/mobileConfig/api';
import PicturesWall from '@/components/Upload/index';
const { Item } = Form;
......@@ -225,6 +225,11 @@ const AddConfig = props => {
{loginList &&
loginList.map((item, index) => (
<Option value={item.value} key={`item${index}`}>
{item.value.includes('h5') ? (
<Tag color="green">h5</Tag>
) : (
<Tag color="blue">flutter</Tag>
)}
{item.text}
</Option>
))}
......@@ -244,6 +249,11 @@ const AddConfig = props => {
{h5LoginList &&
h5LoginList.map((item, index) => (
<Option value={item.value} key={`item${index}`}>
{item.value.includes('h5') ? (
<Tag color="green">h5</Tag>
) : (
<Tag color="blue">flutter</Tag>
)}
{item.text}
</Option>
))}
......
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