1 Star 0 Fork 13

主题/资料/模板信息/uni授权

forked from guoyan/uni授权 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
guoyan 提交于 2021-11-30 15:09 . 代码重写
import Vue from 'vue'
import App from './App'
// 路由
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
import {
uniShowToast,
successToast,
loadingToast,
uniHideToast,
uniShowModal,
uniNavigator,
uniStartPullDownRefresh,
uniStopPullDownRefresh,
uniSetNavigationBarColor
} from './utils/uni_api'
import storage from './utils/storage.js'
import store from './store'
import Authorize from '@/components/x-authorize/x-authorize.vue'
import {updateTitle,authNavigator} from './utils/common.js'
Vue.prototype.$showToast = uniShowToast;
Vue.prototype.$successToast = successToast;
Vue.prototype.$loadingToast = loadingToast;
Vue.prototype.$hideToast = uniHideToast;
Vue.prototype.$showModal = uniShowModal;
Vue.prototype.$navigator = uniNavigator;
Vue.prototype.$authNavigator = authNavigator;
Vue.prototype.$startPullRefresh = uniStartPullDownRefresh;
Vue.prototype.$stopPullRefresh = uniStopPullDownRefresh;
Vue.prototype.$updateTitle = updateTitle;
Vue.prototype.$setNavigationBarColor = uniSetNavigationBarColor;
Vue.prototype.$store = store;
Vue.prototype.$storage = storage;
Vue.component('x-authorize', Authorize)
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/html-static-resources/x-authorize.git
git@gitee.com:html-static-resources/x-authorize.git
html-static-resources
x-authorize
uni授权
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385