You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
501 B
14 lines
501 B
import {onMounted,ref} from "vue"
|
|
import {request_} from "./request";
|
|
|
|
const fuck = {
|
|
install(app){
|
|
app.provide("$http",fuck)
|
|
// app.config.globalProperties.$http = fuck;
|
|
},
|
|
bannerData: (data)=>request_("GET",'https://gank.io/api/v2/banners',data),
|
|
articleData: (data)=>request_("GET",'https://gank.io/api/v2/data/category/GanHuo/type/frontend/page/1/count/10',data),
|
|
articleDetail: (data)=>request_("GET",'https://gank.io/api/v2/post/'+data)
|
|
}
|
|
|
|
export default fuck
|