SQL-{{ item.label }}
@@ -281,8 +281,12 @@ export default {
}
},
- focusCM(index) {
+ focusCM(index, sql) {
this.currentIndex = index
+ const _this = this
+ this.$nextTick(() => {
+ _this.$refs['codeui-'+index][0].$refs['codemirror'].codemirror.refresh()
+ })
},
tag(item) {
let val = ''
diff --git a/dbapi-ui/src/components/api/common/codeUI.vue b/dbapi-ui/src/components/api/common/codeUI.vue
index f3b3ebecb4db8f857382e8aab83dfd0312156719..5328b4e1540721270834226f9d0bb8e2463e4890 100644
--- a/dbapi-ui/src/components/api/common/codeUI.vue
+++ b/dbapi-ui/src/components/api/common/codeUI.vue
@@ -1,6 +1,6 @@
-