1 Star 0 Fork 52

wzy/vk-uni-cloud-router

forked from vk-uni/vk-uni-cloud-router 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 979 Bytes
一键复制 编辑 原始数据 按行查看 历史
VK 提交于 2021-01-08 12:58 +08:00 . 1.6.2
import Vue from 'vue'
import App from './App'
import store from './store'
import config from '@/app.config.js'
import uView from 'uview-ui';
Vue.use(uView);
import vk from 'vk-unicloud-page';
Vue.use(vk);
// 引入vk实例提供的对vuex的简写法文件
import mixin from './store/mixin/mixin.js'
Vue.mixin(mixin);
// 自定义云函数路由配置
Vue.prototype.vk.callFunctionUtil.setConfig({
debug:config.debug,
// 登录页面地址
loginPagePath:config.login.url,
// 主函数名称
functionName:config.functionName
});
// 自定义token拦截器
// Vue.prototype.vk.callFunctionUtil.interceptor.login = (obj = {}) =>{
// let { params, res } = obj;
// if(!params.noAlert){
// Vue.prototype.vk.alert(res.result.msg);
// }
// console.log("跳自己的登录页面");
// // 上方代码可自己修改,写成你自己的逻辑处理。
// };
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zack_wu/vk-uni-cloud-router.git
[email protected]:zack_wu/vk-uni-cloud-router.git
zack_wu
vk-uni-cloud-router
vk-uni-cloud-router
master

搜索帮助