<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<!-- <script src="https://unpkg.com/vue@next"></script> -->
<script src="js/v3.2.8/vue.global.prod.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<flex-rol>hi</flex-rol>
<script>
Vue.component('flex-rol',{
template:'<div><p class="flex-center"></p><slot></slot></div>'
})
</script>
</body>
<style type="text/css">
.flex-center{
display: flex;
align-items: center;
flex-direction: column;
color: blue;
}
</style>
</html>
报错
Uncaught TypeError: Vue.component is not a function
at index.html:12(也就是Vue.component 那一行),如何更改?