You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
594 B
JavaScript

1 year ago
import App from "./App";
1 year ago
// #ifndef VUE3
1 year ago
import Vue from "vue";
import api from "@/http/";
import common from "./common/index.js";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
import uView from "./uview-ui";
Vue.use(uView);
1 year ago
import tmVuetify from "./tm-vuetify";
Vue.use(tmVuetify)
1 year ago
Vue.prototype.$api = api;
Vue.prototype.$common = common;
1 year ago
const app = new Vue({
1 year ago
...App,
});
app.$mount();
1 year ago
// #endif
// #ifdef VUE3
1 year ago
import { createSSRApp } from "vue";
1 year ago
export function createApp() {
1 year ago
const app = createSSRApp(App);
1 year ago
return {
1 year ago
app,
};
1 year ago
}
1 year ago
// #endif