fix(frontend): router view stacking有効時にinstall-extensionsが動かない
This commit is contained in:
parent
4ab9f66356
commit
c17a104de6
|
@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 { Extension } from '@/components/MkExtensionInstaller.vue';
|
||||||
import type { AiScriptPluginMeta } from '@/plugin.js';
|
import type { AiScriptPluginMeta } from '@/plugin.js';
|
||||||
import MkLoading from '@/components/global/MkLoading.vue';
|
import MkLoading from '@/components/global/MkLoading.vue';
|
||||||
|
@ -229,16 +229,10 @@ async function install() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onActivated(() => {
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
url.value = urlParams.get('url');
|
url.value = urlParams.get('url');
|
||||||
hash.value = urlParams.get('hash');
|
hash.value = urlParams.get('hash');
|
||||||
fetch();
|
fetch();
|
||||||
});
|
|
||||||
|
|
||||||
onDeactivated(() => {
|
|
||||||
uiPhase.value = 'fetching';
|
|
||||||
});
|
|
||||||
|
|
||||||
const headerActions = computed(() => []);
|
const headerActions = computed(() => []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue