Commit 8cfba0c4 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修复不可操作显示文本的判断条件

parent 8d98d4ea
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-05 10:28:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-03 19:17:17
* @LastEditTime: 2021-09-10 10:27:19
* @Description: 地址选择 FormItem
*/
import React, { useState, useEffect, useMemo, useRef } from 'react';
......@@ -489,8 +489,8 @@ const AddressSelect: React.FC<IProps> = (props) => {
label: `${item.name} ${item.fullAddress} ${item.phone}`,
}));
}, [list]);
if (!editable && value) {
if (!editable) {
const current = list.find((item) => item.id === value.id);
const full = current ? `${current.name} ${current.fullAddress} ${current.phone}` : null;
const isStr = typeof value === 'string';
......
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