Commit 529d67fb by 焦子成

1

parent 501187ae
......@@ -3,7 +3,7 @@ var domain = "";
let env = process.env.NODE_ENV || "";
if (env == "production") {
apiHost = "https://downloader.rongketech.com/api";
domain = 'https://downloader.rongketech.com/api'
domain = '/api'
} else if (env == "test") {
apiHost = "https://testapp.rongketech.com";
} else {
......
......@@ -385,7 +385,7 @@
<!-- 分页器 -->
<div class="pagination-container">
<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" />
</div>
</div>
......@@ -837,7 +837,7 @@ const loadUpTableData = () => {
function loadDetailTableData() {
http.post(config.uploadDetailList, {
current: currentPage.value,
size: pageSize.value,
pageSize: pageSize.value,
fileStatus: statusMap1[statusFilter.value]
}).then(res => {
if (res.code === 200) {
......@@ -869,6 +869,7 @@ function loadDetailTableData() {
downloadStore.downloads = list
downloadStore.setCustomSubFolder(filePrefix)
customSubFolder.value = filePrefix
deTotal.value = res.data.total
loadUploadDetailTotalNum()
} else {
ElMessage.error(res.message)
......
......@@ -14,11 +14,17 @@ export default defineConfig({
open: true,
proxy: {
'/api': {
target: 'http://39.107.245.36:8081',
target: 'https://downloader.rongketech.com/api',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
},
'/other-api': {
target: 'http://39.107.245.37:8081',
changeOrigin: true,
rewrite: path => path.replace(/^\/other-api/, '')
}
}
},
},
build: {
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