| | |
| | | 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 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"; |
| | | import storage from "./utils/storage"; // 缓存文件 |
| | | import ".env.js"; |
| | | import store from './store/index.js' |
| | | import storage from './utils/storage' // 缓存文件 |
| | | import share from './utils/share.js' // 导入并挂载全局的分享方法 |
| | | 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.$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"; |
| | | App.mpType = 'app' |
| | | const app = new Vue({ |
| | | store, |
| | | ...App, |
| | | }); |
| | | app.$mount(); |
| | | import uView from "@/uni_modules/uview-ui"; |
| | | Vue.use(uView); |
| | | store, |
| | | ...App, |
| | | }) |
| | | Vue.prototype.$onLaunched = new Promise(resolve => { |
| | | Vue.prototype.$isResolve = resolve |
| | | }) |
| | | app.$mount() |
| | | import uView from '@/uni_modules/uview-ui' |
| | | Vue.use(uView) |
| | | Vue.mixin(share) |