Skip to content

Commit

Permalink
docs(Select): remove qs dependencie (vueComponent#7541)
Browse files Browse the repository at this point in the history
  • Loading branch information
extclp authored Apr 30, 2024
1 parent e01f26c commit 54434b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions components/select/demo/search-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Search with remote data.
<script lang="ts" setup>
import { ref } from 'vue';
import jsonp from 'fetch-jsonp';
import qs from 'qs';
let timeout: any;
let currentValue = '';
Expand All @@ -47,11 +46,11 @@ function fetch(value: string, callback: any) {
currentValue = value;
function fake() {
const str = qs.stringify({
const params = new URLSearchParams({
code: 'utf-8',
q: value,
});
jsonp(`https://suggest.taobao.com/sug?${str}`)
jsonp(`https://suggest.taobao.com/sug?${params}`)
.then(response => response.json())
.then(d => {
if (currentValue === value) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@
"pretty-quick": "^3.0.0",
"prismjs": "^1.23.0",
"progress": "^2.0.3",
"qs": "^6.10.3",
"raw-loader": "^4.0.2",
"remark-frontmatter": "^2.0.0",
"remark-parse": "^8.0.0",
Expand Down

0 comments on commit 54434b0

Please sign in to comment.