Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
1c1355da
Commit
1c1355da
authored
Apr 03, 2023
by
zhanghou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加面函下载功能
parent
c3ecca68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Show.vue
src/views/Docpan/Show.vue
+2
-2
No files found.
src/views/Docpan/Show.vue
View file @
1c1355da
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
const
params
=
{
const
params
=
{
index
:
routeQuery
.
idx
,
index
:
routeQuery
.
idx
,
};
};
let
res
=
await
Api
.
post
(
'/service/gitopn/executeDocpan
1
'
,
this
.
wrapper
(
params
));
let
res
=
await
Api
.
post
(
'/service/gitopn/executeDocpan'
,
this
.
wrapper
(
params
));
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
res
.
respCode
==
SUCCESS
)
{
let
base64Str
=
res
.
data
.
executeDocpan
;
let
base64Str
=
res
.
data
.
executeDocpan
;
let
bstr
=
window
.
atob
(
base64Str
);
// 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
let
bstr
=
window
.
atob
(
base64Str
);
// 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
const
params
=
{
const
params
=
{
index
:
routeQuery
.
idx
,
index
:
routeQuery
.
idx
,
};
};
let
res
=
await
Api
.
post
(
'/service/gitopn/executeDocpan
1
'
,
this
.
wrapper
(
params
));
let
res
=
await
Api
.
post
(
'/service/gitopn/executeDocpan'
,
this
.
wrapper
(
params
));
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
res
.
respCode
==
SUCCESS
)
{
let
base64Str
=
res
.
data
.
executeDocpan
;
let
base64Str
=
res
.
data
.
executeDocpan
;
let
bstr
=
window
.
atob
(
base64Str
);
// 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
let
bstr
=
window
.
atob
(
base64Str
);
// 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment