You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/09/13 15:50:17 UTC
[incubator-dubbo-ops] 03/03: enhane codemirror
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
commit 9381e3a459d37d81b973571cc1b9930f3ef839c9
Author: beiwei30 <ia...@gmail.com>
AuthorDate: Thu Sep 13 23:48:38 2018 +0800
enhane codemirror
---
dubbo-admin-frontend/src/components/RoutingRule.vue | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dubbo-admin-frontend/src/components/RoutingRule.vue b/dubbo-admin-frontend/src/components/RoutingRule.vue
index 2d4b225..8e483c8 100644
--- a/dubbo-admin-frontend/src/components/RoutingRule.vue
+++ b/dubbo-admin-frontend/src/components/RoutingRule.vue
@@ -91,10 +91,9 @@
<v-subheader class="pa-0 mt-3">RULE CONTENT</v-subheader>
<codemirror ref="myCm"
- :value="code"
+ v-model="ruleText"
:options="cmOption">
</codemirror>
- <codemirror v-model='ruleText' :placeholder='placeholder' :options="cmOption"></codemirror>
</v-card-text>
<v-card-actions>
@@ -138,7 +137,6 @@
warn: false,
application: '',
service: '',
- ruleText: '',
warnTitle: '',
warnText: '',
currentId: 0,
@@ -177,7 +175,7 @@
status: 'enabled'
}
],
- code: '%yaml 1.2\n' +
+ ruleText: '%yaml 1.2\n' +
'---\n' +
'enable: true/false\n' +
'priority:\n' +