mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
feat(vue): add ionic vue beta (#22062)
This commit is contained in:
7
packages/vue-router/src/utils.ts
Normal file
7
packages/vue-router/src/utils.ts
Normal file
@ -0,0 +1,7 @@
|
||||
const ids: { [k: string]: number } = { main: 0 };
|
||||
|
||||
export const generateId = (type = 'main') => {
|
||||
const id = (ids[type] ?? 0) + 1;
|
||||
ids[type] = id;
|
||||
return (id).toString();
|
||||
};
|
Reference in New Issue
Block a user