-
Beta Was this translation helpful? Give feedback.
Answered by
jj112358
Dec 21, 2022
Replies: 1 comment
-
I had found of the reason of this issue by tracking devtools source code. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="../node_modules/vue/dist/vue.global.js"></script>
</head>
<body>
<div>hello</div>
<script>
const { createApp } = Vue
createApp({
data() {
return {
msg: 'hello',
}
},
}).mount('#app')
// const { reactive } = Vue
// const pState = reactive({ msg: 'hello' })
// console.log(pState)
</script>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jj112358
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had found of the reason of this issue by tracking devtools source code.
I imported composition API from Vue only, not using createApp to set up dev tools
dev tools using
window.__VUE__ === ture
to determin whether detected vue.js or notlike this