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 import '@/commons/commons.css' 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 httpServer from "./util/http.js" Vue.prototype.$get = httpServer.get Vue.prototype.$post = httpServer.post import w_md5 from "js_sdk/zww-md5/w_md5.js" Vue.prototype.$w_md5 = w_md5;