适配超级面板

This commit is contained in:
muwoo
2021-12-09 20:36:33 +08:00
parent b3a00c88ad
commit 1ee379b288
10 changed files with 35 additions and 9 deletions

View File

@@ -6,8 +6,9 @@
<div class="container" v-else>
<div class="installed-list">
<div
:class="currentSelect === index ? 'item active' : 'item'"
:class="currentSelect[0] === index ? 'item active' : 'item'"
:key="index"
@click="currentSelect = [index]"
v-for="(plugin, index) in localPlugins"
>
<img :src="plugin.logo" />
@@ -101,7 +102,7 @@ const localPlugins = computed(() =>
);
const updateLocalPlugin = () => store.dispatch("updateLocalPlugin");
const currentSelect = ref(0);
const currentSelect = ref([0]);
const pluginDetail = computed(() => {
return localPlugins.value[currentSelect.value] || {};