Explorar o código

fix: 修复参数名错误

zhangyuhan %!s(int64=4) %!d(string=hai) anos
pai
achega
2bd8d68deb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      jydocs-pc/src/components/Search.vue

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

@@ -52,7 +52,7 @@ export default {
   },
   },
   beforeMount() {
   beforeMount() {
     const qUrl = this.$route.query
     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)
     qUrl && qUrl.type && (this.type = qUrl.type)
   },
   },
   methods: {
   methods: {