This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch feat-diff
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git

commit 2795a4f1235b35c0b07eabf7a332ab55c4b36511
Author: juzhiyuan <[email protected]>
AuthorDate: Sat Feb 29 08:24:44 2020 +0800

    fix: types error
---
 src/components/HeaderSearch/index.vue | 4 ++--
 src/views/login/index.vue             | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/HeaderSearch/index.vue 
b/src/components/HeaderSearch/index.vue
index df03143..c1a2428 100644
--- a/src/components/HeaderSearch/index.vue
+++ b/src/components/HeaderSearch/index.vue
@@ -73,7 +73,7 @@ export default class extends Vue {
   private show = false
   private options: RouteConfig[] = []
   private searchPool: RouteConfig[] = []
-  private fuse?: Fuse<RouteConfig>
+  private fuse?: Fuse<RouteConfig, Fuse.FuseOptions<RouteConfig>>
 
   get routes() {
     return PermissionModule.routes
@@ -194,7 +194,7 @@ export default class extends Vue {
   private querySearch(query: string) {
     if (query !== '') {
       if (this.fuse) {
-        this.options = this.fuse.search(query)
+        this.options = this.fuse.search(query) as any
       }
     } else {
       this.options = []
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index a4f4d53..dc79540 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -102,7 +102,7 @@
 <script lang="ts">
 import { Component, Vue, Watch } from 'vue-property-decorator'
 import { Route } from 'vue-router'
-import { Dictionary } from 'vuex'
+import { Dictionary } from 'vue-router/types/router'
 import { Form as ElForm, Input } from 'element-ui'
 import { UserModule } from '@/store/modules/user'
 import { isValidUsername } from '@/utils/validate'

Reply via email to