| 1234567891011121314151617181920212223242526272829303132 |
- import App from './App'
- // #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.$msg = function(title = '数据请求失败', duration = 1500, icon = 'none') {
- uni.showToast({
- title,
- duration,
- icon
- })
- }
- // #ifdef VUE3
- import {
- createSSRApp
- } from 'vue';
- import { setupStore } from '@/store';
- export function createApp() {
- const app = createSSRApp(App)
- setupStore(app)
- return {
- app
- }
- }
- // #endif
|