mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
27 lines
No EOL
622 B
Vue
27 lines
No EOL
622 B
Vue
<script setup lang="ts">
|
|
import DraggableWindow from "~/components/DraggableWindow.vue";
|
|
definePageMeta({
|
|
layout: "macui",
|
|
});
|
|
// Router
|
|
const router = useRouter();
|
|
const route = useRoute();
|
|
|
|
// ?opemapp= component
|
|
const openApp = ref(false);
|
|
const openAppId = ref();
|
|
watch(() => route.query.openapp, (newVal) => {
|
|
if (newVal) {
|
|
openApp.value = true;
|
|
openAppId.value = newVal;
|
|
// Remove query parameter without page reload
|
|
router.replace({
|
|
path: route.path,
|
|
query: {},
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
<template>
|
|
<DraggableWindow title="Title">Hi This is a window</DraggableWindow>
|
|
</template> |