-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
38 lines (37 loc) · 931 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<title>Eruda-vue</title>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
</head>
<body>
<div id="app">{{ message }}</div>
<script>
const { createApp, ref } = Vue
createApp({
setup() {
const message = ref('Hello vue!')
return {
message,
}
},
}).mount('#app')
</script>
<script src="node_modules/eruda/eruda.js"></script>
<script>
setTimeout(() => {
console.log(__VUE_DEVTOOLS_GLOBAL_HOOK__)
}, 3000)
eruda.init({ tool: ['console'] })
</script>
<script src="assets/eruda-vue.js"></script>
<script>
eruda.add(erudaVue).show('vue').show()
</script>
</body>
</html>