分享请求接口
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
}
|
||||
</style>
|
||||
<script lang="ts">
|
||||
import { share } from '@/api';
|
||||
import { addshareClick, share } from '@/api';
|
||||
import router from '@/router';
|
||||
import { useI18n } from '@/utils/i18n';
|
||||
import { defineComponent, onMounted, onUpdated, ref, watch } from 'vue';
|
||||
@@ -139,6 +139,9 @@ export default defineComponent({
|
||||
},
|
||||
title: {
|
||||
type: String
|
||||
},
|
||||
vid:{
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
setup(props, ctx){
|
||||
@@ -191,7 +194,11 @@ export default defineComponent({
|
||||
}else {
|
||||
url = `https://www.facebook.com/sharer/sharer.php?%20u=${res.shareUrl}&t=${res.shareTitle}`
|
||||
}
|
||||
|
||||
window.open(url, "_blank")
|
||||
if(props.vid){
|
||||
addshareClick(props.vid)
|
||||
}
|
||||
})
|
||||
}
|
||||
function show(){
|
||||
|
||||
Reference in New Issue
Block a user