Browse Source

fix: 修复参数名错误

zhangyuhan 4 years ago
parent
commit
2bd8d68deb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jydocs-pc/src/components/Search.vue

+ 1 - 1
jydocs-pc/src/components/Search.vue

@@ -52,7 +52,7 @@ export default {
   },
   beforeMount() {
     const qUrl = this.$route.query
-    qUrl && qUrl.input && (this.input = qUrl.input)
+    qUrl && qUrl.text && (this.input = qUrl.text)
     qUrl && qUrl.type && (this.type = qUrl.type)
   },
   methods: {