You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
|
|
// #ifdef H5
|
|
import quill from "quill";
|
|
window.Quill = quill;
|
|
// #endif
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
import cuCustom from './components/cu-custom'
|
|
Vue.component('cu-custom',cuCustom)
|
|
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
|
import { createSSRApp } from 'vue'
|
|
import App from './App.vue'
|
|
import cuCustom from './components/cu-custom'
|
|
import util from '@/utils/utils.js'
|
|
import store from './store'
|
|
import '@/utils/request'
|
|
import api from '@/api/index.js';
|
|
import socketIO from '@/common/socket.js';
|
|
import Empty from "@/components/Empty.vue" //通用空状态
|
|
import Tags from "@/components/Tags.vue" //通用标签
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.config.globalProperties.appStatus=true;
|
|
app.config.globalProperties.$util = util;
|
|
app.config.globalProperties.$api = api;
|
|
app.config.globalProperties.$store = store;
|
|
app.config.globalProperties.socketIo = new socketIO()
|
|
app.component('cu-custom',cuCustom)
|
|
app.component('Empty',Empty)
|
|
app.component('Tags',Tags)
|
|
app.use(store)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|