Browse Source

fix: 判断时加入other类型

qufenxi
alan 5 years ago
parent
commit
cb4e6c9ba0
  1. 3
      src/modules/pages/connection/list/list.service.ts

3
src/modules/pages/connection/list/list.service.ts

@ -1,6 +1,7 @@
import { Connection, ConnectionJDBC, ConnectionJNDI, ConnectionPlugin } from '../../../crud/crud.typings'; import { Connection, ConnectionJDBC, ConnectionJNDI, ConnectionPlugin } from '../../../crud/crud.typings';
import { connectionType } from '@constants/env'; import { connectionType } from '@constants/env';
import { getAllDatabaseTypes, getJdbcDatabaseType } from 'src/modules/app.service'; import { getAllDatabaseTypes, getJdbcDatabaseType } from 'src/modules/app.service';
import { DATA_BASE_TYPES_OTHER } from '@constants/constant';
export function getCreator(connection: Connection) { export function getCreator(connection: Connection) {
switch (connection.connectionType) { switch (connection.connectionType) {
@ -31,6 +32,8 @@ export function hasRegistered(databaseType: string) {
return true; return true;
case connectionType.JNDI: case connectionType.JNDI:
return true; return true;
case DATA_BASE_TYPES_OTHER.text:
return true;
default: default:
return allDatabaseTypes.some(item => item.databaseType === databaseType); return allDatabaseTypes.some(item => item.databaseType === databaseType);
} }

Loading…
Cancel
Save