chore: update pkg

pull/5361/head
tangjinzhou 2022-03-17 16:48:31 +08:00
parent 73ce0ca7ff
commit c69cf76d3c
4 changed files with 10 additions and 13 deletions

View File

@ -33,7 +33,7 @@ Search with remote data.
</template>
<script lang="ts">
import jsonp from 'fetch-jsonp';
import querystring from 'querystring';
import qs from 'qs';
import { defineComponent, ref } from 'vue';
let timeout: any;
@ -47,7 +47,7 @@ function fetch(value: string, callback: any) {
currentValue = value;
function fake() {
const str = querystring.encode({
const str = qs.stringify({
code: 'utf-8',
q: value,
});

View File

@ -160,7 +160,7 @@
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-markdown": "^2.0.0",
"eslint-plugin-no-explicit-type-exports": "^0.12.0",
"eslint-plugin-prettier": "^3.1.0",
@ -211,8 +211,6 @@
"pretty-quick": "^3.0.0",
"prismjs": "^1.23.0",
"qs": "^6.10.3",
"query-string": "^7.0.1",
"querystring": "^0.2.0",
"raw-loader": "^4.0.2",
"remark-frontmatter": "^2.0.0",
"remark-parse": "^8.0.0",
@ -227,18 +225,17 @@
"slash": "^3.0.0",
"string-replace-loader": "^3.1.0",
"style-loader": "^3.0.0",
"stylelint": "^13.0.0",
"stylelint-config-prettier": "^8.0.0",
"stylelint": "^14.0.0",
"stylelint-config-prettier": "^9.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
"stylelint-order": "^4.0.0",
"stylelint-order": "^5.0.0",
"terser-webpack-plugin": "^5.1.1",
"through2": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-loader": "^9.1.0",
"typescript": "~4.5.2",
"umi-mock-middleware": "^1.0.0",
"umi-request": "^1.3.5",
"url-loader": "^3.0.0",
"vite": "^2.3.8",

View File

@ -1,4 +1,4 @@
import qs from 'querystring';
import qs from 'qs';
export interface VueQuery {
vue?: boolean;

View File

@ -1,4 +1,4 @@
import { parse } from 'query-string';
import qs from 'qs';
import router from '../../../router';
import { fakeAccountLogin } from './service';
@ -17,7 +17,7 @@ export default {
// Login successfully
if (response.status === 'ok') {
const urlParams = new URL(window.location.href);
let redirect = parse(location.search).redirect;
let redirect = qs.parse(location.search).redirect;
if (redirect) {
const redirectUrlParams = new URL(redirect);
if (redirectUrlParams.origin === urlParams.origin) {