summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/install-extensions.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-19 20:53:48 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-19 20:53:48 +0900
commitc17a104de6ddf39c614ad30a83088575cd543d7c (patch)
tree2c4cea7f5aa808e2cb952a7aa8b8378a9dfd4296 /packages/frontend/src/pages/install-extensions.vue
parentUpdate deep-equal.ts (diff)
downloadsharkey-c17a104de6ddf39c614ad30a83088575cd543d7c.tar.gz
sharkey-c17a104de6ddf39c614ad30a83088575cd543d7c.tar.bz2
sharkey-c17a104de6ddf39c614ad30a83088575cd543d7c.zip
fix(frontend): router view stacking有効時にinstall-extensionsが動かない
Diffstat (limited to 'packages/frontend/src/pages/install-extensions.vue')
-rw-r--r--packages/frontend/src/pages/install-extensions.vue16
1 files changed, 5 insertions, 11 deletions
diff --git a/packages/frontend/src/pages/install-extensions.vue b/packages/frontend/src/pages/install-extensions.vue
index 2bd923e6d9..95f8c878c9 100644
--- a/packages/frontend/src/pages/install-extensions.vue
+++ b/packages/frontend/src/pages/install-extensions.vue
@@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<script lang="ts" setup>
-import { ref, computed, onActivated, onDeactivated, nextTick } from 'vue';
+import { ref, computed, nextTick } from 'vue';
import type { Extension } from '@/components/MkExtensionInstaller.vue';
import type { AiScriptPluginMeta } from '@/plugin.js';
import MkLoading from '@/components/global/MkLoading.vue';
@@ -229,16 +229,10 @@ async function install() {
}
}
-onActivated(() => {
- const urlParams = new URLSearchParams(window.location.search);
- url.value = urlParams.get('url');
- hash.value = urlParams.get('hash');
- fetch();
-});
-
-onDeactivated(() => {
- uiPhase.value = 'fetching';
-});
+const urlParams = new URLSearchParams(window.location.search);
+url.value = urlParams.get('url');
+hash.value = urlParams.get('hash');
+fetch();
const headerActions = computed(() => []);