浏览代码

fix: 修复参数名错误

zhangyuhan 4 年之前
父节点
当前提交
2bd8d68deb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: {