Skip to content

Commit 95c0168

Browse files
authored
Update app.js
1 parent e4f262d commit 95c0168

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

vue/resources/js/app.js

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,25 @@ app.use(i18n)
1616
app.use(stores)
1717
app.use(router)
1818

19-
app.provide('globalStore', {
20-
id: 1,
21-
async getUsers() {
22-
let res = await axios.get('https://jsonplaceholder.typicode.com/users')
23-
// console.log('App global store', res.data)
24-
},
25-
})
19+
// // Global data
20+
// app.provide('globalStore', {
21+
// id: 1,
22+
// async getUsers() {
23+
// let res = await axios.get('https://jsonplaceholder.typicode.com/users')
24+
// // console.log('App global store', res.data)
25+
// },
26+
// })
2627

27-
// v-color="'red'"
28-
app.directive('color', (el, binding) => {
29-
el.style.color = binding.value
30-
})
28+
// // v-color="'red'"
29+
// app.directive('color', (el, binding) => {
30+
// el.style.color = binding.value
31+
// })
3132

32-
// v-highlight="'yellow'"
33-
app.directive('highlight', {
34-
mounted(el, binding, vnode) {
35-
el.style.background = binding.value
36-
},
37-
})
33+
// // v-highlight="'yellow'"
34+
// app.directive('highlight', {
35+
// mounted(el, binding, vnode) {
36+
// el.style.background = binding.value
37+
// },
38+
// })
3839

39-
app.mount('#app')
40+
app.mount('#app')

0 commit comments

Comments
 (0)