1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import {
- $alert,
- $tips,
- $confirm,
- $hideLoading,
- $showLoading,
- $showBroadcast,
- $hideBroadcast,
- $message
- } from './components/popupLayout'
- import browser from "@/utils/browser.js";
- Vue.config.productionTip = false
- Vue.prototype.$cdn = 'https://shlmuseum.oss-cn-shanghai.aliyuncs.com/shls_museum/'
- Vue.prototype.$bus = new Vue()
- Vue.prototype.$isMobile = browser.mobile
- Vue.mixin({
- methods: {
- $alert,
- $tips,
- $confirm,
- $hideLoading,
- $showLoading,
- $showBroadcast,
- $hideBroadcast,
- $message
- }
- })
- let {axios} = require('./utils/http.js')
- Vue.prototype.$http = axios
- Vue.prototype.$bus = new Vue()
- new Vue({
- router,
- render: h => h(App)
- }).$mount('#app')
|