File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/traction-widget/components/TagsPanel Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ const tempTagInput = ref<string>('');
129129const currentInstance = getCurrentInstance ();
130130const deleteTag = async (index : number ) => {
131131 datasource .tags .splice (index , 1 );
132+ showTagInputArray .value .splice (index , 1 );
132133 console .log (datasource .tags );
133134 await currentInstance ?.proxy ?.$forceUpdate ();
134135};
@@ -164,8 +165,10 @@ const addNewTag = () => {
164165 }
165166 if (datasource .tags ) {
166167 datasource .tags .push (tempTagInput .value );
168+ showTagInputArray .value .push (false );
167169 } else {
168170 datasource .tags = [tempTagInput .value ];
171+ showTagInputArray .value = [false ];
169172 }
170173 } else {
171174 FMessage .warning (props .regexTip );
You can’t perform that action at this time.
0 commit comments