mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-03 17:41:22 +08:00
🐛 fix(sidebar): 修复视图裸名定位失败
This commit is contained in:
@@ -1432,6 +1432,16 @@ export const resolveQueryEditorNavigationTarget = (
|
||||
&& meta.normalizedRawObjectName === exactQualifiedName
|
||||
);
|
||||
if (exact) {
|
||||
if (!normalizedSchemaName && !exact.normalizedSchemaName) {
|
||||
const schemaQualifiedMatches = metas.filter((meta) =>
|
||||
meta.normalizedDbName === normalizedDbName
|
||||
&& meta.normalizedObjectName === normalizedObjectName
|
||||
&& Boolean(meta.normalizedSchemaName)
|
||||
);
|
||||
if (schemaQualifiedMatches.length === 1) {
|
||||
return schemaQualifiedMatches[0];
|
||||
}
|
||||
}
|
||||
return exact;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user