fix: tab bug fix

This commit is contained in:
wangjiahao
2025-07-24 13:54:58 +08:00
parent cd04b234a5
commit 7d64f535b4
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@
"password_reset_successful": "Password reset successful"
},
"dashboard": {
"new_tab": "New Tab",
"length_limit64": "Field length must be between 1 and 64",
"sort_column": "Sort field",
"sort_type": "Sort type",
+1
View File
@@ -34,6 +34,7 @@
"password_reset_successful": "重置密码成功"
},
"dashboard": {
"new_tab": "新建Tab",
"length_limit64": "字段长度需要在1-64之间",
"sort_column": "排序字段",
"sort_type": "排序方式",
@@ -69,7 +69,7 @@ const state = reactive({
function addTab() {
const newTab = {
name: guid('tab'),
title: 'New Tab',
title: t('dashboard.new_tab'),
componentData: [],
closable: true,
}
@@ -36,6 +36,8 @@ const addComponent = (componentType: string, viewInfo?: any) => {
const subTabName = guid('tab')
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
component.propValue[0].name = subTabName
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
component.propValue[0].title = t('dashboard.new_tab')
component.activeTabName = subTabName
}
component.y = 100