This is an automated email from the ASF dual-hosted git repository.
min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new c695042 Do not need to load a full amount of data by default. (#137)
c695042 is described below
commit c695042c0bfee231eceecd42b131834b1a3e7442
Author: 马金凯 <[email protected]>
AuthorDate: Wed Oct 17 10:06:25 2018 +0800
Do not need to load a full amount of data by default. (#137)
---
dubbo-admin-frontend/src/components/governance/AccessControl.vue | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dubbo-admin-frontend/src/components/governance/AccessControl.vue
b/dubbo-admin-frontend/src/components/governance/AccessControl.vue
index 905d5b4..e62a069 100644
--- a/dubbo-admin-frontend/src/components/governance/AccessControl.vue
+++ b/dubbo-admin-frontend/src/components/governance/AccessControl.vue
@@ -146,7 +146,7 @@ export default {
name: 'AccessControl',
data: () => ({
selected: [],
- filter: '',
+ filter: null,
loading: false,
headers: [
{
@@ -196,7 +196,10 @@ export default {
this.filter = ''
}
this.loading = true
- this.$router.push({path: 'access', query: (this.filter !== '' ?
{service: this.filter} : null)})
+ this.$router.push({
+ path: 'access',
+ query: { service: this.filter }
+ })
AXIOS.get('/rules/access', {
params: {
service: this.filter
@@ -287,8 +290,8 @@ export default {
let query = this.$route.query
if ('service' in query) {
this.filter = query['service']
+ this.search()
}
- this.search()
},
components: {
AceEditor,