7f098133 by 杨炀

no message

1 parent 83f47d61
......@@ -156,13 +156,13 @@ const menus = ref([
picUrl2: '/img/nav_30_dwn.png',
isActive: false
},
// {
// name: language.value==0?'发票申请':'Electronic invoice',
// routeName: 'myKP',
// picUrl1: '/img/fp.svg',
// picUrl2: '/img/fp_dwn.svg',
// isActive: false
// }
{
name: language.value==0?'发票申请':'Electronic invoice',
routeName: 'myKP',
picUrl1: '/img/fp.svg',
picUrl2: '/img/fp_dwn.svg',
isActive: false
}
])
const menusEn = ref([
{
......@@ -251,13 +251,13 @@ const menus3 = ref([
picUrl2: '/img/c7.png',
isActive: false
},
// {
// name: language.value==0?'发票申请':'Electronic invoice',
// routeName: 'myKP',
// picUrl1: '/img/fp.svg',
// picUrl2: '/img/fp_dwn.svg',
// isActive: false
// }
{
name: language.value==0?'发票申请':'Electronic invoice',
routeName: 'myKP',
picUrl1: '/img/fp.svg',
picUrl2: '/img/fp_dwn.svg',
isActive: false
}
])
const menus3En = ref([
{
......@@ -332,13 +332,13 @@ const menusPersonal = ref([
picUrl2: '/img/nav_30_dwn.png',
isActive: false
},
// {
// name: language.value==0?'发票申请':'Electronic invoice',
// routeName: 'myKP',
// picUrl1: '/img/fp.svg',
// picUrl2: '/img/fp_dwn.svg',
// isActive: false
// }
{
name: language.value==0?'发票申请':'Electronic invoice',
routeName: 'myKP',
picUrl1: '/img/fp.svg',
picUrl2: '/img/fp_dwn.svg',
isActive: false
}
])
const menusPersonalEn = ref([
{
......
......@@ -85,19 +85,14 @@ export function download(url, params, filename, config) {
})
.then(async(res) => {
const data = res.data
console.log(blobValidate(data))
console.log(res.headers)
const isBlob = blobValidate(data)
if (isBlob) {
let hz = ''
if (res.headers['content-disposition'].indexOf('zip') > -1 || res.headers['content-type'].indexOf('pdf') > -1) {
// if (res.headers['content-type'].indexOf('zip') > -1) {
// hz = '.zip'
// } else if (res.headers['content-type'].indexOf('pdf') > -1) {
// hz = '.pdf'
// if (res.headers['content-disposition']?.indexOf('zip') > -1 || res.headers['content-type']?.indexOf('pdf') > -1) {
// const index = res.headers['content-disposition'].indexOf('=')
// hz = res.headers['content-disposition'].substr(index + 1, res.headers['content-disposition'].length)
// }
const index = res.headers['content-disposition'].indexOf('=')
hz = res.headers['content-disposition'].substr(index + 1, res.headers['content-disposition'].length)
}
const blob = new Blob([data])
saveAs(blob, hz ? filename = decodeURIComponent(hz) : filename)
} else {
......
......@@ -76,8 +76,7 @@ export default defineConfig(({ mode, command }) => {
rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '')
},
'/dev-api/ztx-webSite': {
// target: 'https://dance.itechtop.cn/stage-api',
target: 'https://jijin.wtwuxicenter.com/stage-api',
target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
},
......@@ -85,16 +84,16 @@ export default defineConfig(({ mode, command }) => {
// target: 'http://192.168.1.118:8081/',
// target: 'http://192.168.1.131:8081/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'http://124.70.181.90:1880/stage-api',
target: 'https://wdsfwuxicenter.com/stage-api/',
target: 'http://124.70.181.90:1880/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
},
'/ticket': {
target: 'http://192.168.1.131:8098/',
// target: 'http://192.168.1.131:8081/',
// target: 'http://124.70.181.90:1880/h5',
// target: 'https://ticketh5.wdsfwuxicenter.com/h5/stage-api',
// target: 'http://124.70.181.90:1880/h5/',
// target: 'https://ticketh5.wdsfwuxicenter.com/h5/',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/ticket/, '')
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!