mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-05 01:45:41 +01:00
fixes
This commit is contained in:
parent
da52a9300f
commit
187013aa51
@ -10,10 +10,10 @@ const props = defineProps<{
|
|||||||
loadIssueInfoUrl: string,
|
loadIssueInfoUrl: string,
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const loading = shallowRef<boolean>(false);
|
const loading = shallowRef(false);
|
||||||
const issue = shallowRef<Issue>(null);
|
const issue = shallowRef<Issue>(null);
|
||||||
const renderedLabels = shallowRef<string>('');
|
const renderedLabels = shallowRef('');
|
||||||
const errorMessage = shallowRef<string>(null);
|
const errorMessage = shallowRef('');
|
||||||
|
|
||||||
const createdAt = computed(() => {
|
const createdAt = computed(() => {
|
||||||
return new Date(issue.value.created_at).toLocaleDateString(undefined, {year: 'numeric', month: 'short', day: 'numeric'});
|
return new Date(issue.value.created_at).toLocaleDateString(undefined, {year: 'numeric', month: 'short', day: 'numeric'});
|
||||||
@ -26,7 +26,7 @@ const body = computed(() => {
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
errorMessage.value = null;
|
errorMessage.value = '';
|
||||||
try {
|
try {
|
||||||
const resp = await GET(props.loadIssueInfoUrl);
|
const resp = await GET(props.loadIssueInfoUrl);
|
||||||
if (!resp.ok) {
|
if (!resp.ok) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user