pad-app/main.js

30 lines
678 B
JavaScript
Raw Normal View History

2023-07-03 17:49:29 +08:00
import App from './App'
2023-07-10 17:11:31 +08:00
import store from './store'
2023-07-03 17:49:29 +08:00
import config from '@/config';
2023-07-10 17:11:31 +08:00
const {
local,
mapkey,
imgSrc
} = config;
2023-07-03 17:49:29 +08:00
Vue.prototype.$local = local;
Vue.prototype.$imgSrc = imgSrc;
2023-07-10 17:11:31 +08:00
// 配置公共方法
import util from './common/util.js';
Vue.prototype.$util = util;
import Vue from 'vue'
2023-07-03 17:49:29 +08:00
Vue.config.productionTip = false
App.mpType = 'app'
import uniPop from './uni_modules/uni-popup/components/uni-popup/uni-popup'
import liuStepBar from './uni_modules/liu-step-bar/components/liu-step-bar/liu-step-bar'
2023-07-10 17:11:31 +08:00
Vue.component('uni-pop', uniPop)
Vue.component('liu-step-bar', liuStepBar)
2023-07-03 17:49:29 +08:00
const app = new Vue({
store,
2023-07-10 17:11:31 +08:00
...App
2023-07-03 17:49:29 +08:00
})
2023-07-10 17:11:31 +08:00
app.$mount()