New file |
| | |
| | | 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"; |
| | | // 定义全局 |
| | | 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, |
| | | }); |
| | | app.$mount(); |
| | | import uView from "@/uni_modules/uview-ui"; |
| | | Vue.use(uView); |