main.js
import Vue from 'vue';
import SocialSharing from "vue-social-sharing";
Vue.use(SocialSharing);在另一个组件中:
<social-sharing url="https://vuejs.org/" title="The Progressive JavaScript Framework"
description="Intuitive, Fast and Composable MVVM for building interactive interfaces."
quote="Vue is a progressive framework for building user interfaces."
hashtags="vuejs,javascript,framework"
twitter-user="vuejs"
inline-template >
<div>
<network network="facebook">
<i class="fa fa-fw fa-facebook"></i> Facebook
</network>
</div>
</social-sharing>但我收到以下控制台错误

发布于 2019-07-20 19:12:26
在您的vue.config.js中添加X-Frame-Options标头
module.exports = {
devServer: {
headers: {
'X-Frame-Options': 'sameorigin'
}
}
}https://stackoverflow.com/questions/57119035
复制相似问题