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.

36 lines
629 B
JavaScript

9 months ago
import App from "./App";
import uviewPlus from "uview-plus";
9 months ago
import request from "./api/index";
9 months ago
9 months ago
import Vconsole from 'vconsole'
const vConsole = new Vconsole()
9 months ago
9 months ago
// #ifndef VUE3
9 months ago
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
App.mpType = "app";
9 months ago
const app = new Vue({
9 months ago
...App,
});
app.$mount();
9 months ago
// #endif
9 months ago
9 months ago
/*app.use(vConsole)*/
9 months ago
// #ifdef VUE3
9 months ago
import { createSSRApp } from "vue";
9 months ago
export function createApp() {
9 months ago
const app = createSSRApp(App);
app.use(uviewPlus);
9 months ago
app.config.globalProperties.$request = request;
9 months ago
uni.$u.config.unit = "rpx";
9 months ago
return {
9 months ago
app,
};
9 months ago
}
9 months ago
// #endif