这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime-core/componentPublicInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const PublicInstanceProxyHandlers = {
const { setupState, props } = instance;
console.log(`触发 proxy hook , key -> : ${key}`);

if (key !== "$") {
if (key[0] !== "$") {
// 说明不是访问 public api
// 先检测访问的 key 是否存在于 setupState 中, 是的话直接返回
if (hasOwn(setupState, key)) {
Expand Down