小程序产品库完成
This commit is contained in:
42
src/main.js
Normal file
42
src/main.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
import store from './store'
|
||||
import axios from "./utils/axios"
|
||||
import utils from './utils/util'
|
||||
import config from './utils/config'
|
||||
import dayjs from 'dayjs'
|
||||
import vui from 'uview-ui'
|
||||
import 'uview-ui/theme.scss'
|
||||
import AiAreaPicker from '@/components/AiAreaPicker/AiAreaPicker'
|
||||
import AiLogin from '@/components/AiLogin/AiLogin'
|
||||
import AiRadio from '@/components/AiRadio/AiRadio'
|
||||
import AiCheckbox from '@/components/AiCheckbox/AiCheckbox'
|
||||
|
||||
Vue.use(vui)
|
||||
Vue.component('ai-area-picker', AiAreaPicker)
|
||||
Vue.component('AiLogin', AiLogin)
|
||||
Vue.component('AiRadio', AiRadio)
|
||||
Vue.component('AiCheckbox', AiCheckbox)
|
||||
Vue.config.productionTip = false
|
||||
Vue.prototype.$instance = axios.instance
|
||||
Vue.prototype.$areaId = config.areaId;
|
||||
Vue.prototype.$areaName = config.areaName;
|
||||
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/'
|
||||
|
||||
App.mpType = 'app'
|
||||
|
||||
var relativeTime = require('dayjs/plugin/relativeTime')
|
||||
var duration = require('dayjs/plugin/duration')
|
||||
require('dayjs/locale/zh-cn')
|
||||
|
||||
dayjs.extend(duration)
|
||||
dayjs.extend(relativeTime)
|
||||
Vue.prototype.$dayjs = dayjs
|
||||
|
||||
Object.keys(utils).map(e => Vue.prototype[e] = utils[e])
|
||||
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
Reference in New Issue
Block a user