fix: name保存问题

This commit is contained in:
手瓜一十雪 committed 2024-11-16 10:38:03 +08:00
1 parent 8abf81de7f
commit f2b3a44437
2 files changed
+2 -4

No files matched your search

+1 -4
View File
@@ -24,10 +24,7 @@
</template>
<script setup lang="ts">
const joinQQGroup = () => {
// 加入QQ群的逻辑
window.open('https://jq.qq.com/?_wv=1027&k=123456789', '_blank');
};
</script>
<style scoped>
+1
View File
@@ -175,6 +175,7 @@ const showAddTabDialog = () => {
const addTab = async () => {
const { name, type } = newTab.value;
const defaultConfig = structuredClone(defaultConfigs[type]);
defaultConfig.name = name;
clientPanelData.push({ name, data: defaultConfig, key: type });
isDialogVisible.value = false;
await nextTick();