fix: 安装统计分页再加固 + index.html 禁缓存
This commit is contained in:
1 parent
34b7c8aa23
commit
c4b00cbf85
2 files changed
+16
-2
No files matched your search
+8
-1
@@ -4,11 +4,18 @@ server {
|
|||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /var/www/public;
|
root /var/www/public;
|
||||||
index index.php index.html;
|
index index.html index.php;
|
||||||
|
|
||||||
client_max_body_size 20M;
|
client_max_body_size 20M;
|
||||||
|
|
||||||
# 前端 SPA fallback
|
# 前端 SPA fallback
|
||||||
|
location = /index.html {
|
||||||
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
|
add_header Pragma "no-cache";
|
||||||
|
expires 0;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
:total="total"
|
:total="total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="fetchList"
|
@current-change="handlePageChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -314,6 +314,13 @@ function handleSizeChange() {
|
|||||||
fetchList()
|
fetchList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handlePageChange(p) {
|
||||||
|
if (p && Number(p) !== Number(page.value)) {
|
||||||
|
page.value = Number(p)
|
||||||
|
}
|
||||||
|
fetchList()
|
||||||
|
}
|
||||||
|
|
||||||
function showDetail(row) {
|
function showDetail(row) {
|
||||||
detailRow.value = row
|
detailRow.value = row
|
||||||
detailVisible.value = true
|
detailVisible.value = true
|
||||||
|
|||||||
Reference in new issue
Block a user