// atob polyfill for WeChat mini programs (required by bwip-js for font/base64 decoding) (function() { var _chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' var _atob = function(input) { var str = String(input).replace(/[=]+$/, '') var output = '' var bc = 0, bs, buffer = 0, i = 0 for (; str.charAt(i | 0); i++) { bs = _chars.indexOf(str.charAt(i)) buffer = (buffer << 6) | bs bc += 6 if (bc >= 8) { bc -= 8 output += String.fromCharCode((buffer >>> bc) & 255) } } return output } try { globalThis.atob = globalThis.atob || _atob } catch(e) {} try { global.atob = global.atob || _atob } catch(e) {} })() import App from './App' import './utils/formatTime' // #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' import uViewPro from 'uview-pro' import { setupStore } from '@/store' export function createApp() { const app = createSSRApp(App) app.use(uViewPro) setupStore(app) return { app } } // #endif