12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import ElementPlus from 'element-plus' //添加
- import 'element-plus/dist/index.css' //添加
- // import locale from 'element-plus/lib/locale/lang/zh-cn' //切换为中文版本
- import App from './App'
- import appPush from '@/js_sdk/levine-APPPush/levine-APPPush/plugins/APPPush/index.js'
- import Print from 'vue3-print-nb'
- // #ifndef VUE3
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- // 封装弹框的方法
- uni.$showMsg = (title = '数据请求失败!', duration = 1500) => {
- uni.showToast({
- title,
- duration,
- icon: 'none'
- })
- }
- uni.$appPush = appPush
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- app.use(Print)
- app.use(ElementPlus)
- // app.use(appPush)
- return {
- app
- }
- }
- // #endif
|