Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7f098133
authored
2024-07-19 10:18:15 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
83f47d61
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
36 deletions
src/viewsPc/center/index.vue
src/viewsPc/seat/utils/request.js
vite.config.js
src/viewsPc/center/index.vue
View file @
7f09813
...
...
@@ -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
([
{
...
...
src/viewsPc/seat/utils/request.js
View file @
7f09813
...
...
@@ -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
{
...
...
vite.config.js
View file @
7f09813
...
...
@@ -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/
,
''
)
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment