Browse Source

Merge pull request #30 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit 'b6bf63b0814657fb2b90f2f9985d64de08dda08c':
  fix: 无jira任务,修改默认图片名称
qufenxi
alan 5 years ago
parent
commit
dd5653bb0c
  1. 1
      redis.js
  2. 2
      src/modules/pages/database/database_type/database_type.ts

1
redis.js

@ -6,6 +6,7 @@ BI.DOM.ready(() => {
BI.config(ConstantRedisType, datas => [...datas, {
text: 'Redis',
databaseType: 'Redis',
iconUrl: 'http://alan-picpack.oss-cn-hangzhou.aliyuncs.com/1567134942861890',
}]);
const RedisShowName = 'dec.dcm.connection.plugin.redis.show';

2
src/modules/pages/database/database_type/database_type.ts

@ -76,7 +76,7 @@ export class DatebaseType extends BI.BasicButton {
const ImgObj = new Image();
ImgObj.src = this.img.getSrc();
ImgObj.onerror = () => {
this.img.setSrc(`${ImgPrefix}other.jpg`);
this.img.setSrc(`${ImgPrefix}default.jpg`);
};
}
}

Loading…
Cancel
Save