Commit 5d16abe4 authored by Facius's avatar Facius

feat: 分享功能

parent f0b3b6f9
import Vue from 'vue' import Vue from 'vue'
import App from './App' import App from './App'
import store from '@/store' import store from '@/store'
import vuexStore from "@/store/$u.mixin.js" import vuexStore from '@/store/$u.mixin.js'
import {router,RouterMount} from './router.js' import { router, RouterMount } from './router.js'
Vue.use(router) Vue.use(router)
Vue.config.productionTip = false Vue.config.productionTip = false
...@@ -11,13 +11,17 @@ Vue.mixin(vuexStore) ...@@ -11,13 +11,17 @@ Vue.mixin(vuexStore)
// 引入全局uView // 引入全局uView
import uView from 'uview-ui' import uView from 'uview-ui'
Vue.use(uView); Vue.use(uView)
const app = new Vue({ const app = new Vue({
store, store,
...App ...App,
}) })
// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
import httpInterceptor from '@/common/http.interceptor.js' import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app) Vue.use(httpInterceptor, app)
...@@ -26,7 +30,7 @@ import httpApi from '@/common/http.api.js' ...@@ -26,7 +30,7 @@ import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app) Vue.use(httpApi, app)
// #ifdef H5 // #ifdef H5
RouterMount(app,router,'#app') RouterMount(app, router, '#app')
// #endif // #endif
// #ifndef H5 // #ifndef H5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment