Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pastgift committed Jan 6, 2021
1 parent f5b5c84 commit f6e08c5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Editor/AsideDataSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<el-popover v-if="data.tip"
placement="right-start"
trigger="hover"
trigger="click"
transition="el-fade-in"
popper-class="aside-tip"
:close-delay="500">
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Editor/AsideEnvVariable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<el-popover v-if="data.tip"
placement="right-start"
trigger="hover"
trigger="click"
transition="el-fade-in"
popper-class="aside-tip"
:close-delay="500">
Expand Down
4 changes: 4 additions & 0 deletions client/src/components/Editor/AsideScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,15 @@ export default {
this.defaultExpandedNodeKeys = Object.keys(this.expandedNodeMap);
setImmediate(() => {
if (!this.$refs.tree) return;
// 自动选中
this.$refs.tree.setCurrentKey(this.$store.state.asideScript_currentNodeKey || null);
});
setTimeout(() => {
if (!this.$refs.tree) return;
// 滚动到目标位置
let entryId = this.$refs.tree.getCurrentKey();
if (entryId) {
Expand Down
4 changes: 2 additions & 2 deletions client/src/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const DATE_SOURCE = [
logo : logo_redis,
tagType : 'danger',
debugSupported: true,
sampleCode : `helper = DFF.SRC('{0}')\ndb_res = helper.query('GET', '"some_key"')`,
sampleCode : `helper = DFF.SRC('{0}')\ndb_res = helper.query('GET', 'some_key')`,
configFields: {
host : { default: null, isRequired: true },
port : { default: 6379 },
Expand All @@ -105,7 +105,7 @@ export const DATE_SOURCE = [
logo : logo_memcached,
tagType : 'success',
debugSupported: true,
sampleCode : `helper = DFF.SRC('{0}')\ndb_res = helper.query('GET', '"some_key"')`,
sampleCode : `helper = DFF.SRC('{0}')\ndb_res = helper.query('GET', 'some_key')`,
configFields: {
servers: { default: null, isRequired: true },
},
Expand Down

0 comments on commit f6e08c5

Please sign in to comment.