docs(Select): remove qs dependencie (#7541)

pull/7548/head
extclp 7 months ago committed by GitHub
parent e01f26c541
commit 54434b0931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 = '';
@ -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) {

@ -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",

Loading…
Cancel
Save