
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import axios from "axios"
import qs from 'qs'
import getUrlKey from './utils/getToken.js'
// alert(localStorage.getItem('errorMsg')+'09'+getUrlKey('token'))
// if(getUrlKey('usersId')!=null){
	localStorage.setItem('token',getUrlKey('token'))//
	localStorage.setItem('head_image',getUrlKey('head_image'))
	localStorage.setItem('parentId',getUrlKey('parentId'))//0是最上级，1不是
	localStorage.setItem('OrgIds',getUrlKey('OrgIds'))//0是最上级，1不是
	// localStorage.setItem('token',"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzd29yZCI6IlBCL2tVMDRZSkswVG54c0l5RHRlNlZxa20rUURhdkZ3UWxxcEtnR0pEMEpRWXlSSS9QdWFCd1h4dW5CR0poTjVKOE92ZndVMUFVaHBSMEx1SVA3UmhHbFpMdGZaaTJyNnZmbkFOcWR0QlhPQlAyL3gxays0OTFHTGJET0ZqeXhYUmtrRDZ1MWsyeTNsWnY0djlWdEFPV1k0T1VYUHJnNE1CUE14WlBVK1pTdz0iLCJleHAiOjE3MTUxNjA1NDIsImlhdCI6MTcxNTA3NDE0MiwiYWNjb3VudCI6ImFkbWluIn0.uGnaiXAg3UD9tYWiaPw9_uqhJzrMf5a9Naw50pxdvFc")
	// localStorage.setItem('user_head',"756D1D9856695F71029C45B16D407517")
	localStorage.setItem('errorMsg',getUrlKey('errorMsg'))
	localStorage.setItem('openId',getUrlKey('openId'))
	localStorage.setItem('usersId',getUrlKey('usersId'))//320
	localStorage.setItem('adminMenuId',getUrlKey('adminMenuId'))//
	localStorage.setItem('adminId',getUrlKey('adminId'))
	localStorage.setItem('adminMenuName',getUrlKey('adminMenuName'))
	localStorage.setItem('telephone',getUrlKey('telephone'))
	localStorage.setItem('name',getUrlKey('name'))
	localStorage.setItem('user_head',getUrlKey('user_head'))
	localStorage.setItem('department',getUrlKey('department'))//部门，0是其他，4是教师
	localStorage.setItem('manager',getUrlKey('manager'))//管理员1，0不是1
	// alert(localStorage.getItem('head_image'))
	console.log(localStorage.getItem('token'),getUrlKey('usersId'))
	console.log(localStorage.getItem('errorMsg'))
	console.log(localStorage.getItem('openId'))
// }
// alert()
// alert('管理员'+localStorage.getItem('manager')+'身份'+localStorage.getItem('department'))

//引入公共接口
import http from './utils/request.js'
//挂载全局
Vue.prototype.$http = http

Vue.config.productionTip = false

App.mpType = 'app'
Vue.prototype.$axios = axios;
Vue.prototype.$qs = qs;

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif