sunChengjie hace 1 año
padre
commit
7dd12530d0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main.js

+ 2 - 2
src/main.js

@@ -16,14 +16,14 @@ import backIndex from './components/backindex.vue'
 import Vant from 'vant'
 import 'vant/lib/index.css'
 import request from "@/utils/request" 
-Vue.prototype.$http = request
+Vue.prototype.$axios = request
 Vue.component('tabbar', tabbar)
 Vue.component('banner', banner)
 Vue.component('back', back)
 Vue.component('backindex', backIndex)
 Vue.config.productionTip = false
 Vue.use(Vant)
-// Vue.use(resource)
+Vue.use(resource)
 import common from './script/common.js'
 Vue.use(common)
 import * as echarts from 'echarts'