Files
2026-10-08 18:36:23 +08:00

51 lines
967 B
JavaScript

import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import uView from '@/uni_modules/uview-ui'
import vk from 'uni_modules/vk-unicloud';
import config from '@/app.config.js'
Vue.use(uView).use(ElementUI).use(vk);
import VueTianditu from "vue-tianditu";
Vue.use(VueTianditu, {
v: "4.0",
tk: "bfbc6bd9e85fcda67b62788705aa6427"
});
Vue.prototype.vk.init({
Vue, // Vue实例
config, // 配置
});
Vue.prototype.$jump = (url) => {
uni.navigateTo({url})
}
Vue.prototype.$toHome = () => {
uni.switchTab({url: '/pages/index/index'})
}
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
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