我用Laravel护照运行Laravel 5.4和Vue.js和Axios。所以在我的/ home我打电话Vue.js组件:Laravel 5.4和Axion让我疯狂:“Axios没有定义”
<passport-clients></passport-clients>
<passport-authorized-clients></passport-authorized-clients>
<passport-personal-access-tokens></passport-personal-access-tokens>
当我运行服务器和钻进页面,组件被加载。然而,操作按钮不起作用,但此错误的出现:
vue.js?3de6:482 [Vue warn]: Error in mounted hook: "ReferenceError: axios is not defined" found in ---> at /home/someusername/Documentos/AGIL/DESENVOLVIMENTO/somefolder/projeto/resources/assets/js/components/passport/Clients.vue
而其他的,如:
ReferenceError: axios is not defined at VueComponent.getClients (eval at (app.js:320), :277:13) at VueComponent.boundFn [as getClients] (eval at (app.js:418), :186:12) at VueComponent.prepareComponent (eval at (app.js:320), :260:18) at VueComponent.boundFn [as prepareComponent] (eval at (app.js:418), :186:12) at VueComponent.mounted (eval at (app.js:320), :252:14) at callHook (eval at (app.js:418), :2705:21) at Object.insert (eval at (app.js:418), :3586:7) at invokeInsertHook (eval at (app.js:418), :5532:28) at Vue$3.patch [as patch] (eval at (app.js:418), :5735:5) at Vue$3.Vue._update (eval at (app.js:418), :2454:19)
这让我疯了,我已经安装了爱可信,Vue.js,任何小费?