[skip ci] perf(web): improve little performance

This commit is contained in:
Xwite
2023-05-14 14:06:18 +08:00
parent 624f993d34
commit 152dc4e3b8
7 changed files with 39 additions and 38 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ const handleSourceClick = (source) => {
store.changeCurrentSource(source);
};
const isSaveError = computed(() => {
if (savedSourcesMap.value.size == 0) return false;
return !savedSourcesMap.value.has(sourceUrl.value);
const map = savedSourcesMap.value;
if (map.size == 0) return false;
return !map.has(sourceUrl.value);
});
</script>
<style lang="scss" scoped>