Commit 529d67fb by 焦子成

1

parent 501187ae
...@@ -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 {
......
...@@ -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,
size: pageSize.value, pageSize: 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)
......
...@@ -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: 'https://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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment