|
|
|
@ -1,5 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
|
|
|
|
|
// location.href = `${location.origin}${process.env.VUE_APP_URL}/pharmaceuticals/singleSignOn/signOut`;
|
|
|
|
|
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
|
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
@ -13,6 +22,14 @@ import App from './App'
|
|
|
|
|
import store from './store'
|
|
|
|
|
import router from './router'
|
|
|
|
|
import directive from './directive' // directive
|
|
|
|
|
import { getToken } from '@/api/mapApi'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(import.meta.env.VITE_APP_ENV === "production"){
|
|
|
|
|
getToken()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 注册指令
|
|
|
|
|
import plugins from './plugins' // plugins
|
|
|
|
@ -55,6 +72,7 @@ app.config.globalProperties.addDateRange = addDateRange
|
|
|
|
|
app.config.globalProperties.selectDictLabel = selectDictLabel
|
|
|
|
|
app.config.globalProperties.selectDictLabels = selectDictLabels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 全局组件挂载
|
|
|
|
|
app.component('DictTag', DictTag)
|
|
|
|
|
app.component('Pagination', Pagination)
|
|
|
|
|