fix: name保存问题

This commit is contained in:
手瓜一十雪 2024-11-16 10:38:03 +08:00
parent 15d9390ee4
commit 9f261e78c3
2 changed files with 2 additions and 4 deletions

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>

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();