12345678910111213141516171819202122232425262728293031323334353637 |
- import Vue from 'vue'
- import App from './App'
- import { config } from './config/config'
- import store from './store'
- import Request from '@/js_sdk/luch-request/luch-request/index.js';
- const http = new Request();
- import './utils/filter'
- Vue.config.productionTip = false
- const setNavbarTitle = (title,defaultTitle) => {
- uni.setNavigationBarTitle({
- title:title || defaultTitle
- })
- }
- Vue.prototype.checkLogin = function(backpage, backtype){
- var TOKEN = uni.getStorageSync('token');
- if(TOKEN == ''){
- uni.redirectTo({url:'/page/login/login?backpage='+backpage+'&backtype='+backtype});
- return false;
- }
- return [TOKEN];
- }
- Vue.prototype.$api = {http,setNavbarTitle}
- Vue.prototype.$store = store
- Vue.prototype.config = config
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|