From 5fecc9e46d448df3de987504440c4fdd582f858e Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Tue, 31 Oct 2023 10:35:40 +0800 Subject: [PATCH] fix:小程序秒级数据和登录授权 --- main.js | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/main.js b/main.js new file mode 100644 index 0000000..5470a1f --- /dev/null +++ b/main.js @@ -0,0 +1,27 @@ +import Vue from 'vue' +import App from './App' +import * as http from './utils/http' // http������������ +import * as login from './utils/login' // ������ +import * as utils from './utils/utils' // ������������ +// import * as common from './utils/common' // ������������ +import store from './store/index.js' +import storage from './utils/storage' // ������������ +import '.env.js' +// ������������ +Vue.prototype.$store = store +Vue.prototype.$storage = storage +Vue.prototype.$http = http +Vue.prototype.$login = login +Vue.prototype.$utils = utils +// Vue.prototype.$common = common +App.mpType = 'app' +const app = new Vue({ + store, + ...App, +}) +Vue.prototype.$onLaunched = new Promise(resolve => { + Vue.prototype.$isResolve = resolve +}) +app.$mount() +import uView from '@/uni_modules/uview-ui' +Vue.use(uView) \ No newline at end of file -- Gitblit v1.8.0