Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
downloader
download-web
Commits
529d67fb
Commit
529d67fb
authored
Sep 03, 2025
by
焦子成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
501187ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
src/api/api.js
+1
-1
src/views/Downloader.vue
+3
-2
vite.config.js
+8
-2
No files found.
src/api/api.js
View file @
529d67fb
...
@@ -3,7 +3,7 @@ var domain = "";
...
@@ -3,7 +3,7 @@ var domain = "";
let
env
=
process
.
env
.
NODE_ENV
||
""
;
let
env
=
process
.
env
.
NODE_ENV
||
""
;
if
(
env
==
"production"
)
{
if
(
env
==
"production"
)
{
apiHost
=
"https://downloader.rongketech.com/api"
;
apiHost
=
"https://downloader.rongketech.com/api"
;
domain
=
'
https://downloader.rongketech.com
/api'
domain
=
'/api'
}
else
if
(
env
==
"test"
)
{
}
else
if
(
env
==
"test"
)
{
apiHost
=
"https://testapp.rongketech.com"
;
apiHost
=
"https://testapp.rongketech.com"
;
}
else
{
}
else
{
...
...
src/views/Downloader.vue
View file @
529d67fb
...
@@ -385,7 +385,7 @@
...
@@ -385,7 +385,7 @@
<!--
分页器
-->
<!--
分页器
-->
<
div
class
=
"pagination-container"
>
<
div
class
=
"pagination-container"
>
<
el
-
pagination
v
-
model
:
current
-
page
=
"currentPage"
v
-
model
:
page
-
size
=
"pageSize"
<
el
-
pagination
v
-
model
:
current
-
page
=
"currentPage"
v
-
model
:
page
-
size
=
"pageSize"
:
page
-
sizes
=
"[10, 20, 50, 100]"
:
total
=
"deTotal"
layout
=
"total, sizes, prev, pager, next, jumper"
:
page
-
sizes
=
"[10, 20, 50, 100
, 500
]"
:
total
=
"deTotal"
layout
=
"total, sizes, prev, pager, next, jumper"
@
size
-
change
=
"handleSizeChange"
@
current
-
change
=
"handleCurrentChange"
/>
@
size
-
change
=
"handleSizeChange"
@
current
-
change
=
"handleCurrentChange"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -837,7 +837,7 @@ const loadUpTableData = () => {
...
@@ -837,7 +837,7 @@ const loadUpTableData = () => {
function loadDetailTableData() {
function loadDetailTableData() {
http.post(config.uploadDetailList, {
http.post(config.uploadDetailList, {
current: currentPage.value,
current: currentPage.value,
s
ize: pageSize.value,
pageS
ize: pageSize.value,
fileStatus: statusMap1[statusFilter.value]
fileStatus: statusMap1[statusFilter.value]
}
).then(res => {
}
).then(res => {
if (res.code === 200) {
if (res.code === 200) {
...
@@ -869,6 +869,7 @@ function loadDetailTableData() {
...
@@ -869,6 +869,7 @@ function loadDetailTableData() {
downloadStore.downloads = list
downloadStore.downloads = list
downloadStore.setCustomSubFolder(filePrefix)
downloadStore.setCustomSubFolder(filePrefix)
customSubFolder.value = filePrefix
customSubFolder.value = filePrefix
deTotal.value = res.data.total
loadUploadDetailTotalNum()
loadUploadDetailTotalNum()
}
else {
}
else {
ElMessage.error(res.message)
ElMessage.error(res.message)
...
...
vite.config.js
View file @
529d67fb
...
@@ -14,11 +14,17 @@ export default defineConfig({
...
@@ -14,11 +14,17 @@ export default defineConfig({
open
:
true
,
open
:
true
,
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http
://39.107.245.36:8081
'
,
target
:
'http
s://downloader.rongketech.com/api
'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
/^
\/
api/
,
''
)
rewrite
:
path
=>
path
.
replace
(
/^
\/
api/
,
''
)
},
'/other-api'
:
{
target
:
'http://39.107.245.37:8081'
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
/^
\/
other-api/
,
''
)
}
}
}
},
},
},
build
:
{
build
:
{
outDir
:
'dist'
,
outDir
:
'dist'
,
...
...
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