no message
Showing
3 changed files
with
31 additions
and
37 deletions
| ... | @@ -156,13 +156,13 @@ const menus = ref([ | ... | @@ -156,13 +156,13 @@ const menus = ref([ |
| 156 | picUrl2: '/img/nav_30_dwn.png', | 156 | picUrl2: '/img/nav_30_dwn.png', |
| 157 | isActive: false | 157 | isActive: false |
| 158 | }, | 158 | }, |
| 159 | // { | 159 | { |
| 160 | // name: language.value==0?'发票申请':'Electronic invoice', | 160 | name: language.value==0?'发票申请':'Electronic invoice', |
| 161 | // routeName: 'myKP', | 161 | routeName: 'myKP', |
| 162 | // picUrl1: '/img/fp.svg', | 162 | picUrl1: '/img/fp.svg', |
| 163 | // picUrl2: '/img/fp_dwn.svg', | 163 | picUrl2: '/img/fp_dwn.svg', |
| 164 | // isActive: false | 164 | isActive: false |
| 165 | // } | 165 | } |
| 166 | ]) | 166 | ]) |
| 167 | const menusEn = ref([ | 167 | const menusEn = ref([ |
| 168 | { | 168 | { |
| ... | @@ -251,13 +251,13 @@ const menus3 = ref([ | ... | @@ -251,13 +251,13 @@ const menus3 = ref([ |
| 251 | picUrl2: '/img/c7.png', | 251 | picUrl2: '/img/c7.png', |
| 252 | isActive: false | 252 | isActive: false |
| 253 | }, | 253 | }, |
| 254 | // { | 254 | { |
| 255 | // name: language.value==0?'发票申请':'Electronic invoice', | 255 | name: language.value==0?'发票申请':'Electronic invoice', |
| 256 | // routeName: 'myKP', | 256 | routeName: 'myKP', |
| 257 | // picUrl1: '/img/fp.svg', | 257 | picUrl1: '/img/fp.svg', |
| 258 | // picUrl2: '/img/fp_dwn.svg', | 258 | picUrl2: '/img/fp_dwn.svg', |
| 259 | // isActive: false | 259 | isActive: false |
| 260 | // } | 260 | } |
| 261 | ]) | 261 | ]) |
| 262 | const menus3En = ref([ | 262 | const menus3En = ref([ |
| 263 | { | 263 | { |
| ... | @@ -332,13 +332,13 @@ const menusPersonal = ref([ | ... | @@ -332,13 +332,13 @@ const menusPersonal = ref([ |
| 332 | picUrl2: '/img/nav_30_dwn.png', | 332 | picUrl2: '/img/nav_30_dwn.png', |
| 333 | isActive: false | 333 | isActive: false |
| 334 | }, | 334 | }, |
| 335 | // { | 335 | { |
| 336 | // name: language.value==0?'发票申请':'Electronic invoice', | 336 | name: language.value==0?'发票申请':'Electronic invoice', |
| 337 | // routeName: 'myKP', | 337 | routeName: 'myKP', |
| 338 | // picUrl1: '/img/fp.svg', | 338 | picUrl1: '/img/fp.svg', |
| 339 | // picUrl2: '/img/fp_dwn.svg', | 339 | picUrl2: '/img/fp_dwn.svg', |
| 340 | // isActive: false | 340 | isActive: false |
| 341 | // } | 341 | } |
| 342 | ]) | 342 | ]) |
| 343 | const menusPersonalEn = ref([ | 343 | const menusPersonalEn = ref([ |
| 344 | { | 344 | { | ... | ... |
| ... | @@ -85,19 +85,14 @@ export function download(url, params, filename, config) { | ... | @@ -85,19 +85,14 @@ export function download(url, params, filename, config) { |
| 85 | }) | 85 | }) |
| 86 | .then(async(res) => { | 86 | .then(async(res) => { |
| 87 | const data = res.data | 87 | const data = res.data |
| 88 | console.log(blobValidate(data)) | 88 | console.log(res.headers) |
| 89 | const isBlob = blobValidate(data) | 89 | const isBlob = blobValidate(data) |
| 90 | if (isBlob) { | 90 | if (isBlob) { |
| 91 | let hz = '' | 91 | let hz = '' |
| 92 | if (res.headers['content-disposition'].indexOf('zip') > -1 || res.headers['content-type'].indexOf('pdf') > -1) { | 92 | // if (res.headers['content-disposition']?.indexOf('zip') > -1 || res.headers['content-type']?.indexOf('pdf') > -1) { |
| 93 | // if (res.headers['content-type'].indexOf('zip') > -1) { | 93 | // const index = res.headers['content-disposition'].indexOf('=') |
| 94 | // hz = '.zip' | 94 | // hz = res.headers['content-disposition'].substr(index + 1, res.headers['content-disposition'].length) |
| 95 | // } else if (res.headers['content-type'].indexOf('pdf') > -1) { | 95 | // } |
| 96 | // hz = '.pdf' | ||
| 97 | // } | ||
| 98 | const index = res.headers['content-disposition'].indexOf('=') | ||
| 99 | hz = res.headers['content-disposition'].substr(index + 1, res.headers['content-disposition'].length) | ||
| 100 | } | ||
| 101 | const blob = new Blob([data]) | 96 | const blob = new Blob([data]) |
| 102 | saveAs(blob, hz ? filename = decodeURIComponent(hz) : filename) | 97 | saveAs(blob, hz ? filename = decodeURIComponent(hz) : filename) |
| 103 | } else { | 98 | } else { | ... | ... |
| ... | @@ -76,8 +76,7 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -76,8 +76,7 @@ export default defineConfig(({ mode, command }) => { |
| 76 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '') | 76 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-match/, '') |
| 77 | }, | 77 | }, |
| 78 | '/dev-api/ztx-webSite': { | 78 | '/dev-api/ztx-webSite': { |
| 79 | // target: 'https://dance.itechtop.cn/stage-api', | 79 | target: 'https://wdsfwuxicenter.com/stage-api/', |
| 80 | target: 'https://jijin.wtwuxicenter.com/stage-api', | ||
| 81 | changeOrigin: true, | 80 | changeOrigin: true, |
| 82 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') | 81 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') |
| 83 | }, | 82 | }, |
| ... | @@ -85,16 +84,16 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -85,16 +84,16 @@ export default defineConfig(({ mode, command }) => { |
| 85 | // target: 'http://192.168.1.118:8081/', | 84 | // target: 'http://192.168.1.118:8081/', |
| 86 | // target: 'http://192.168.1.131:8081/', | 85 | // target: 'http://192.168.1.131:8081/', |
| 87 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 86 | // target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 88 | // target: 'http://124.70.181.90:1880/stage-api', | 87 | target: 'http://124.70.181.90:1880/stage-api', |
| 89 | target: 'https://wdsfwuxicenter.com/stage-api/', | 88 | // target: 'https://wdsfwuxicenter.com/stage-api/', |
| 90 | changeOrigin: true, | 89 | changeOrigin: true, |
| 91 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 90 | rewrite: (p) => p.replace(/^\/dev-api/, '') |
| 92 | }, | 91 | }, |
| 93 | '/ticket': { | 92 | '/ticket': { |
| 94 | target: 'http://192.168.1.131:8098/', | 93 | target: 'http://192.168.1.131:8098/', |
| 95 | // target: 'http://192.168.1.131:8081/', | 94 | // target: 'http://192.168.1.131:8081/', |
| 96 | // target: 'http://124.70.181.90:1880/h5', | 95 | // target: 'http://124.70.181.90:1880/h5/', |
| 97 | // target: 'https://ticketh5.wdsfwuxicenter.com/h5/stage-api', | 96 | // target: 'https://ticketh5.wdsfwuxicenter.com/h5/', |
| 98 | changeOrigin: true, | 97 | changeOrigin: true, |
| 99 | rewrite: (p) => p.replace(/^\/ticket/, '') | 98 | rewrite: (p) => p.replace(/^\/ticket/, '') |
| 100 | } | 99 | } | ... | ... |
-
Please register or sign in to post a comment