File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed
Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,25 @@ app.use(i18n)
1616app . use ( stores )
1717app . 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' )
You can’t perform that action at this time.
0 commit comments