mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: tab bug fix
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user