diff --git a/epmet-oper-web/src/main.js b/epmet-oper-web/src/main.js index 8b47e9c..20c7ad9 100644 --- a/epmet-oper-web/src/main.js +++ b/epmet-oper-web/src/main.js @@ -1,6 +1,7 @@ import Vue from 'vue' import Element from 'element-ui' +import Cookies from 'js-cookie' import App from '@/App' import i18n from '@/i18n' import router from '@/router' @@ -62,7 +63,8 @@ window.SITE_CONFIG['storeState'] = cloneDeep(store.state) // el-uploader的header配置 Vue.prototype.$getElUploadHeaders = () => ({ - Authorization: localStorage.getItem('token') || '' + Authorization: Cookies.get('token') || '' +// Authorization: localStorage.getItem('token') || '' }) new Vue({ diff --git a/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue b/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue index 3f6e4f0..40a9622 100644 --- a/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue +++ b/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue @@ -1,166 +1,167 @@