import App from './App' // #ifndef VUE3 import Vue from 'vue' 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 Vue.prototype.$token = false Vue.prototype.$userInfo = null uni.getStorage({ key: "userInfo", success(_data) { Vue.prototype.$userInfo = _data.data }, fail() { Vue.prototype.$userInfo = null } }) uni.getStorage({ key: "Authorization", success(_data) { console.log(_data) Vue.prototype.$token = _data.data }, fail() { Vue.prototype.$token = false } }) //公用链接 import env from '@/util/env.js' Vue.prototype.$baseUrl = env.baseUrl //公用请求 import httpServer from "@/util/http.js" Vue.prototype.$get = httpServer.get Vue.prototype.$post = httpServer.post import Mixin from './polyfill/mixins' Vue.mixin(Mixin)