大家好,又见面了,我是你们的朋友全栈君。
在new vue()的时候不能加入store,否则在App.vue文件中onLaunch(){}失效
正确的使用姿势:
import store from '@/store'
Vue.prototype.$store = store
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/129570.html原文链接:https://javaforall.net
在newvue()的时候不能加入store,否则在App.vue文件中onLaunch(){}失效正确的使用姿势:importstorefrom’@/store’Vue.prototype.$store=store
大家好,又见面了,我是你们的朋友全栈君。
在new vue()的时候不能加入store,否则在App.vue文件中onLaunch(){}失效
正确的使用姿势:
import store from '@/store'
Vue.prototype.$store = store
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/129570.html原文链接:https://javaforall.net