museum-H5-V2/main.js

29 lines
538 B
JavaScript
Raw Normal View History

2023-12-22 04:02:31 +00:00
import App from "./App";
import uView from "uview-ui";
2023-12-23 02:47:47 +00:00
import request from "@/api/index.js";
// import Vconsole from "vconsole";
// new Vconsole();
2023-12-22 04:02:31 +00:00
// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
Vue.use(uView);
2023-12-23 02:47:47 +00:00
Vue.prototype.$request = request;
2023-12-22 04:02:31 +00:00
App.mpType = "app";
const app = new Vue({
...App,
});
app.$mount();
// #endif
// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
const app = createSSRApp(App);
return {
app,
};
}
// #endif