feat: chatgpt prompts

This commit is contained in:
lencx
2022-12-16 21:23:46 +08:00
parent 3318bfb23f
commit 47c9072f40
10 changed files with 79 additions and 19 deletions

View File

@@ -16,6 +16,10 @@ const Tags: FC<TagsProps> = ({ value = [], onChange }) => {
const [inputValue, setInputValue] = useState('');
const inputRef = useRef<InputRef>(null);
useEffect(() => {
setTags(value);
}, [value])
useEffect(() => {
if (inputVisible) {
inputRef.current?.focus();