mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nuxt): remove $
from generated id in useId
(#25615)
This commit is contained in:
parent
e8d1219886
commit
82173ad1a9
@ -12,6 +12,8 @@ export function useId (key?: string): string {
|
||||
if (typeof key !== 'string') {
|
||||
throw new TypeError('[nuxt] [useId] key must be a string.')
|
||||
}
|
||||
// TODO: implement in composable-keys
|
||||
key = key.slice(1)
|
||||
const nuxtApp = useNuxtApp()
|
||||
const instance = getCurrentInstance()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user