|
@@ -108,8 +108,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- if (this.$route.query.keyWords) {
|
|
|
- keyWords = this.$route.query.keyWords
|
|
|
+ const { keyWords } = this.$route.query
|
|
|
+ if (keyWords) {
|
|
|
this.keyWords = keyWords
|
|
|
}
|
|
|
this.gueryRole({
|
|
@@ -163,6 +163,9 @@ export default {
|
|
|
this.arrs = []
|
|
|
this.dataList = []
|
|
|
this.pageNum = 1
|
|
|
+ if (this.keyWords) {
|
|
|
+ this.$router.push({ path: '/role', query: { keyWords: '' } })
|
|
|
+ }
|
|
|
this.keyWords = ''
|
|
|
this.gueryRole({
|
|
|
QueryName: this.keyWords,
|