mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
过滤无用的库 🐛
This commit is contained in:
parent
fb19336228
commit
0979211766
|
@ -310,7 +310,7 @@ function getDatabases() {
|
||||||
post('/getdatabases', {}, (res: any) => {
|
post('/getdatabases', {}, (res: any) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
databaseOptions.value = [];
|
databaseOptions.value = [];
|
||||||
const hideDatabase = ['information_schema', 'mysql', 'performance_schema'];
|
const hideDatabase = ['information_schema', 'mysql', 'performance_schema', '北工大412824200020002000', '数据模拟412824200020002000'];
|
||||||
res.data.forEach((item: any, index: number) => {
|
res.data.forEach((item: any, index: number) => {
|
||||||
if (!hideDatabase.some(e => e === item.Database)) databaseOptions.value.push({ value: item.Database, label: item.Database });
|
if (!hideDatabase.some(e => e === item.Database)) databaseOptions.value.push({ value: item.Database, label: item.Database });
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user