0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-03 15:15:22 +01:00
This commit is contained in:
silverwind 2025-10-29 09:15:49 +01:00
parent da52a9300f
commit 187013aa51
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -10,10 +10,10 @@ const props = defineProps<{
loadIssueInfoUrl: string,
}>();
const loading = shallowRef<boolean>(false);
const loading = shallowRef(false);
const issue = shallowRef<Issue>(null);
const renderedLabels = shallowRef<string>('');
const errorMessage = shallowRef<string>(null);
const renderedLabels = shallowRef('');
const errorMessage = shallowRef('');
const createdAt = computed(() => {
return new Date(issue.value.created_at).toLocaleDateString(undefined, {year: 'numeric', month: 'short', day: 'numeric'});
@ -26,7 +26,7 @@ const body = computed(() => {
onMounted(async () => {
loading.value = true;
errorMessage.value = null;
errorMessage.value = '';
try {
const resp = await GET(props.loadIssueInfoUrl);
if (!resp.ok) {