Skip to content

Commit

Permalink
feat: auto close edit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 committed Mar 30, 2024
1 parent 3d41da0 commit 5e6d068
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/EditItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const issuesApi = async () => {
const loadingIssues = ref(false);
const issuesId = ref(undefined);
const importFromIssue = async () => {
loadingIssues.value = true;
const issues = await issuesApi();
Expand All @@ -107,6 +109,7 @@ const importFromIssue = async () => {
}
found = true;
issuesId.value = issue.number;
toast.success(t('importSuccess', {
issue: issue.number,
id: id.value
Expand Down Expand Up @@ -148,7 +151,8 @@ const submit = async () => {
name: name.value,
link: url.value,
tag: tag.value,
status: status.value
status: status.value,
issuesId: issuesId.value
});
loading.value = false;
if (res) {
Expand Down

0 comments on commit 5e6d068

Please sign in to comment.