From 52d463e03c1f074099ed8e8a6b7c3ddde52d2708 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Fri, 27 Oct 2023 14:50:28 +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