update vue3.3

web编辑 修正筛选删除导出逻辑
This commit is contained in:
Xwite
2023-05-14 19:36:52 +08:00
parent e173e3196d
commit 1b6c8f5b2f
12 changed files with 130 additions and 100 deletions
+3 -2
View File
@@ -15,11 +15,12 @@
<script setup>
import { Edit } from "@element-plus/icons-vue";
import { getSourceUniqueKey } from "@/utils/souce";
const props = defineProps(["source"]);
const store = useSourceStore();
const { savedSourcesMap, currentSourceUrl, sourceUrlKey } = storeToRefs(store);
const sourceUrl = computed(() => props.source[sourceUrlKey.value]);
const { savedSourcesMap, currentSourceUrl } = storeToRefs(store);
const sourceUrl = computed(() => getSourceUniqueKey(props.source));
const handleSourceClick = (source) => {
store.changeCurrentSource(source);
};