mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 00:01:03 +08:00
It works now :D
This commit is contained in:
parent
861c6b8e35
commit
e4d2b4840a
@ -46,6 +46,7 @@ onMounted(() => {
|
|||||||
<img
|
<img
|
||||||
:src="fetchNewsOrgInfo?.logoUrl"
|
:src="fetchNewsOrgInfo?.logoUrl"
|
||||||
class="w-48 h-48 rounded-l-3xl object-cover p-0 m-0"
|
class="w-48 h-48 rounded-l-3xl object-cover p-0 m-0"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-col gap-3 text-left">
|
<div class="flex flex-col gap-3 text-left">
|
||||||
<h1 class="text-4xl font-bold m-3 text-left">
|
<h1 class="text-4xl font-bold m-3 text-left">
|
||||||
|
@ -64,6 +64,7 @@ onMounted(async () => {
|
|||||||
:src="imageUrls[item.id] || noImageLogo"
|
:src="imageUrls[item.id] || noImageLogo"
|
||||||
alt="Organization Logo"
|
alt="Organization Logo"
|
||||||
class="w-16 h-16 rounded-xl"
|
class="w-16 h-16 rounded-xl"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
<h1>{{ item.title }}</h1>
|
<h1>{{ item.title }}</h1>
|
||||||
<span>{{ item.description }}</span>
|
<span>{{ item.description }}</span>
|
||||||
|
@ -248,7 +248,11 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
const openWindow = (windowName?: string) => {
|
const openWindow = (windowName?: string) => {
|
||||||
if (windowName === "leave") {
|
if (windowName === "leave") {
|
||||||
|
if (confirm("Are you sure?")) {
|
||||||
router.push(localePath("/home"));
|
router.push(localePath("/home"));
|
||||||
|
} else {
|
||||||
|
return
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (windowName) findAndOpenWindow(windowName);
|
if (windowName) findAndOpenWindow(windowName);
|
||||||
}
|
}
|
||||||
@ -340,10 +344,13 @@ const obtainTopWindowPosition = (windowId: string) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const closeWindow = (windowId: string) => {
|
const closeWindow = (windowId: string, windowAID: string) => {
|
||||||
activeWindows.value = activeWindows.value.filter(
|
activeWindows.value = activeWindows.value.filter(
|
||||||
(window) => window.id !== windowId,
|
(window) => window.id !== windowId,
|
||||||
);
|
);
|
||||||
|
currentNavBar.value = currentNavBar.value.filter(
|
||||||
|
(window) => window.windowAssociated !== windowAID
|
||||||
|
)
|
||||||
console.log("activeWindows.value", activeWindows.value);
|
console.log("activeWindows.value", activeWindows.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -508,7 +515,7 @@ watchEffect((cleanupFn) => {
|
|||||||
v-for="window in activeWindows"
|
v-for="window in activeWindows"
|
||||||
:key="window.id"
|
:key="window.id"
|
||||||
:title="window.title"
|
:title="window.title"
|
||||||
@close="closeWindow(window.id)"
|
@close="closeWindow(window.id, window.absoluteId)"
|
||||||
@min="unMinWindow(window.id)"
|
@min="unMinWindow(window.id)"
|
||||||
:width="window.width"
|
:width="window.width"
|
||||||
:height="window.height"
|
:height="window.height"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user