17 lines
311 B
17 lines
311 B
import http from './util';
|
|
import * as mockData from './mock';
|
|
const home = {
|
|
aa: "haha"
|
|
}
|
|
|
|
const api = {
|
|
home: ()=> http({res: mockData['home'], isSuccess:true})
|
|
};
|
|
|
|
export default{
|
|
install(Vue,opts){
|
|
if(Vue.prototype.$n){
|
|
Vue.prototype.$n.api = Object.assign(Vue.prototype.$n.api, api)
|
|
}
|
|
}
|
|
}
|
|
|