Skip to content

Commit

Permalink
Version_0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
censujiang committed Jun 5, 2023
1 parent 495820c commit 2dae5bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions esm/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ export const url = {
const uniRouter = getCurrentPages();
const currentRoute = uniRouter[uniRouter.length - 1];
if (isFullPath) {
//return currentRoute.route;
return currentRoute.$page.fullPath;
}
else {
return '/' + currentRoute.route;
}
return '/' + currentRoute.route;
},
getQuery: (value) => {
const uniRouter = getCurrentPages();
Expand Down
2 changes: 1 addition & 1 deletion types/url.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare const url: {
getPath: (isFullPath?: boolean) => string;
getPath: (isFullPath?: boolean) => any;
getQuery: (value: string) => any;
getHash: () => any;
setHash: (value?: string) => boolean;
Expand Down

0 comments on commit 2dae5bb

Please sign in to comment.