20230520 0826北汽福田现场
This commit is contained in:
@@ -1,10 +1,34 @@
|
||||
import axios from 'axios'
|
||||
import { wsuri_config, name_config, name1_config, name3_config, name4_config, readFile_config, readImg_config, upload_config, upload2_config, upload3_config, uploadInvoiceScan_config, uploadInvoiceScan1_config,
|
||||
download_config, uploadPerson_config, uploadOP_config, url_config, ExcelDownLoad_config, ServerIP_config, uploadFileMachine_config,
|
||||
downloadFileMachine_config, MESUploadFile_config, MESDownloadFile_config, request_config, MESUploadFileProduct_config, MESUploadFileProject_config, MESUploadFileProcess_config } from '../../static/config'
|
||||
import Cookies from 'js-cookie'
|
||||
import store from '@/store'
|
||||
|
||||
const wsuri_config = `ws://192.168.1.27:61101//WebMoudule//websocket`
|
||||
const name_config = `OP8888`
|
||||
const name1_config = `OP1000`
|
||||
const name3_config = `OP2000`
|
||||
const name4_config = `OP9999`
|
||||
const readFile_config = window.g.baseURL + `/webpage/file/` // invoice
|
||||
const readImg_config = window.g.baseURL + `/webpage/img/` // delivery/MS/performancebond
|
||||
const upload_config = window.g.baseURL + `/submit/uploadFile.ashx` // ContractInformationManagement
|
||||
const upload2_config = window.g.baseURL + `/submit/upload2.ashx` // delivery
|
||||
const upload3_config = window.g.baseURL + `/submit/upload3.ashx` // performancebond
|
||||
const uploadInvoiceScan_config = window.g.baseURL + `/submit/uploadInvoiceScan.ashx` // invoice
|
||||
const uploadInvoiceScan1_config = window.g.baseURL + `/submit/uploadInvoiceScan1.ashx` // invoice(workshop)
|
||||
const download_config = window.g.baseURL + `/submit/downloadFile.ashx` // ContractInformationManagement
|
||||
const uploadPerson_config = window.g.baseURL + `/submit/uploadPerson.ashx`
|
||||
const uploadOP_config = window.g.baseURL + `/submit/uploadOP.ashx`
|
||||
const url_config = window.g.baseURL + `/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
|
||||
const ExcelDownLoad_config = window.g.baseURL + '/submit/MESCommonBase.ashx' // 导出excel
|
||||
const ServerIP_config = window.g.baseURL + `/webpage/file/`
|
||||
const uploadFileMachine_config = window.g.baseURL + `/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
|
||||
const downloadFileMachine_config = window.g.baseURL + `/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231
|
||||
const MESUploadFile_config = window.g.baseURL + `/submit/MESUploadFileParts.ashx`
|
||||
const MESUploadFileProduct_config = window.g.baseURL + `/submit/MESUploadFileProduct.ashx`
|
||||
const MESDownloadFile_config = window.g.baseURL + `/submit/MESDownloadFile.ashx`
|
||||
const MESUploadFileProject_config = window.g.baseURL + `/submit/MESUploadFileProject.ashx`
|
||||
const MESUploadFileProcess_config = window.g.baseURL + `/submit/MESUploadFileProcess.ashx`
|
||||
const request_config = window.g.baseURL + `/submit/MESCommonBase.ashx`
|
||||
|
||||
export const wsuri = wsuri_config
|
||||
export const name = name_config
|
||||
export const name1 = name1_config
|
||||
@@ -41,11 +65,7 @@ const service = axios.create({
|
||||
service.interceptors.request.use(config => {
|
||||
if (config.data.name !== '菜单系统模块_用户名密码_查询数据_new2' && config.data.name !== '菜单系统模块_获取角色模块_查询数据') {
|
||||
const id = Cookies.get('id')
|
||||
if (typeof (id) !== 'undefined') {
|
||||
console.log(id, 123)
|
||||
console.log(typeof (id))
|
||||
} else {
|
||||
console.log(456)
|
||||
if (typeof (id) === 'undefined') {
|
||||
store.dispatch('FedLogOut').then(() => {
|
||||
location.reload() // 为了重新实例化vue-router对象 避免bug
|
||||
alert('此账号登录失效,请重新登录')
|
||||
|
||||
Reference in New Issue
Block a user