2024-01-15 14:02:04 +08:00
|
|
|
|
|
|
|
import "./static/iconfont/iconfont.css"
|
|
|
|
import "./static/iconfont/iconfont-weapp/iconfont-weapp-icon.css"
|
|
|
|
|
|
|
|
// #ifndef VUE3
|
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App'
|
2024-03-13 16:07:11 +08:00
|
|
|
import svg from './static/iconfont/svg.js'
|
|
|
|
|
2024-01-16 18:52:23 +08:00
|
|
|
Vue.use(svg);
|
2024-01-15 14:02:04 +08:00
|
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
App.mpType = 'app';
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
...App
|
|
|
|
})
|
|
|
|
app.$mount()
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
2024-03-13 16:07:11 +08:00
|
|
|
import request from "./utils/api.js"
|
|
|
|
import publicMethods from "./utils/public.js"
|
|
|
|
|
2024-01-15 14:02:04 +08:00
|
|
|
export function createApp() {
|
2024-03-13 16:07:11 +08:00
|
|
|
const app = createSSRApp(App)
|
|
|
|
app.config.globalProperties.$api = request;
|
|
|
|
app.config.globalProperties.$wf = publicMethods;
|
2024-01-15 14:02:04 +08:00
|
|
|
return {
|
|
|
|
app
|
|
|
|
}
|
|
|
|
}
|
2024-01-16 18:52:23 +08:00
|
|
|
// #endif
|
|
|
|
|