fix: web书籍部分图片加载失败

This commit is contained in:
Xwite
2023-04-16 20:08:30 +08:00
parent 97d75c1484
commit 9ee0c363e6
12 changed files with 61 additions and 63 deletions

View File

@@ -1,7 +1,7 @@
<template>
<el-tabs id="source-edit">
<el-tab-pane
v-for="{ name, children } in tabsData"
v-for="{ name, children } in Object.values(config)"
:label="name"
:key="name"
>
@@ -59,11 +59,7 @@
<script setup>
const store = useSourceStore();
const props = defineProps(["config"]);
const tabsData = Object.values(props.config);
defineProps(["config"]);
const { currentSource } = storeToRefs(store);
</script>