main.ts
341 Bytes
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
Vue.prototype.sendRequest = function(param:any){
let _self = this,
url = param.url,
data = param.data,
header = param.header,
token = '';
//拼接完整请求url
let requestUrl = this.baseUrl + url;
}
new App().$mount()