我按照本教程进行操作,并且正在使用“ Passport 的默认 Vue 前端”。现在的问题是Vue 组件 没有出现在Laravel 5.3中。
资源/js/app.js:_
var Vue = require('vue');
reuire('./bootstrap');
Vue.component('example', require('./components/Example.vue'));
Vue.component(
'passport-clients',
require('./components/passport/Clients.vue')
);
Vue.component(
'passport-authorized-clients',
require('./components/passport/AuthorizedClients.vue')
);
Vue.component(
'passport-personal-access-tokens',
require('./components/passport/PersonalAccessTokens.vue')
);
const app = new Vue({
el: 'body'
});
资源/视图/ home.blade.php :
@extends('layouts.app')
@section('content')
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<div class="container">
<div class="row">
<passport-clients></passport-clients>
<passport-authorized-clients></passport-authorized-clients>
<passport-personal-access-tokens></passport-personal-access-tokens>
</div>
@endsection