如何在插槽中获取全局变量 #9441
Unanswered
Sidan-Feng
asked this question in
Help/Questions
如何在插槽中获取全局变量
#9441
Replies: 1 comment
-
Can you provide a minimum reproduction such as a playground or git repository? such as use codesandbox. |
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.
-
在表格中嵌入一个router-link超链接,该超链接使用query携带参数跳转,参数赋值时,可以获取到父组件的值,但是获取不到全局对象的值,在插槽内this的指向不是全局对象。
Beta Was this translation helpful? Give feedback.
All reactions