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.
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)
|
|
}
|
|
}
|
|
}
|
|
|