in the <script lang="ts" setup> how can i get scopedId #7747
Unanswered
jiekechens
asked this question in
Help/Questions
Replies: 1 comment
-
import { getCurrentInstance } from 'vue'
// you can find it here
const instance = getCurrentInstance() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i konw in vue2 like this.$options._scopeId can get it,but i don't how to get it in the vue3 to <script lang="ts" setup>
大佬 怎么在vue3 语法糖里面拿到当前组件的scopedid呀
Beta Was this translation helpful? Give feedback.
All reactions