mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🎨 调整share enable逻辑
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
刷新
|
刷新
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
:disabled="showOverlay"
|
:disabled="enableShare"
|
||||||
@click="share()"
|
@click="share()"
|
||||||
rounded
|
rounded
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { onBeforeMount, onMounted, ref, watch } from "vue";
|
import { onBeforeMount, onMounted, ref, watch, computed } from "vue";
|
||||||
|
|
||||||
import showSnackbar from "../../components/func/snackbar.js";
|
import showSnackbar from "../../components/func/snackbar.js";
|
||||||
import ToLoading from "../../components/overlay/to-loading.vue";
|
import ToLoading from "../../components/overlay/to-loading.vue";
|
||||||
@@ -123,6 +123,11 @@ const modeList = [
|
|||||||
{ label: "卡片视图(详细)", value: "dev" },
|
{ label: "卡片视图(详细)", value: "dev" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const enableShare = computed<boolean>(() => {
|
||||||
|
if (showOverlay.value) return true;
|
||||||
|
return !!showSelect.value;
|
||||||
|
});
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (userStore.account.value) user.value = userStore.account.value;
|
if (userStore.account.value) user.value = userStore.account.value;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user