fix(core): update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartrouter.plugins';
|
||||
import * as plugins from './smartrouter.plugins.js';
|
||||
|
||||
export class QueryParams {
|
||||
constructor() {}
|
||||
@@ -8,7 +8,11 @@ export class QueryParams {
|
||||
return Object.fromEntries((urlSearchParams as any).entries());
|
||||
}
|
||||
|
||||
public setQueryParam(queryKeyArg: string, queryContentArg: string, pushOrReplaceArg: 'push' | 'replace' = 'replace') {
|
||||
public setQueryParam(
|
||||
queryKeyArg: string,
|
||||
queryContentArg: string,
|
||||
pushOrReplaceArg: 'push' | 'replace' = 'replace'
|
||||
) {
|
||||
var queryParams = new URLSearchParams(window.location.search);
|
||||
queryParams.set(queryKeyArg, queryContentArg);
|
||||
pushOrReplaceArg === 'push'
|
||||
|
Reference in New Issue
Block a user