fix: name保存问题
This commit is contained in:
1 parent
8abf81de7f
commit
f2b3a44437
2 files changed
+2
-4
No files matched your search
@@ -24,10 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const joinQQGroup = () => {
|
|
||||||
// 加入QQ群的逻辑
|
|
||||||
window.open('https://jq.qq.com/?_wv=1027&k=123456789', '_blank');
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ const showAddTabDialog = () => {
|
|||||||
const addTab = async () => {
|
const addTab = async () => {
|
||||||
const { name, type } = newTab.value;
|
const { name, type } = newTab.value;
|
||||||
const defaultConfig = structuredClone(defaultConfigs[type]);
|
const defaultConfig = structuredClone(defaultConfigs[type]);
|
||||||
|
defaultConfig.name = name;
|
||||||
clientPanelData.push({ name, data: defaultConfig, key: type });
|
clientPanelData.push({ name, data: defaultConfig, key: type });
|
||||||
isDialogVisible.value = false;
|
isDialogVisible.value = false;
|
||||||
await nextTick();
|
await nextTick();
|
||||||
|
|||||||
Reference in new issue
Block a user