chore: clean up debug artifacts and improve table scrolling

- Remove console.log statements from axios service
- Remove debugger statements from decorate.vue
- Add horizontal scroll support to prison management tables
This commit is contained in:
tangweijie 2026-01-20 20:21:00 +08:00
parent 695d39d117
commit 7b9026826e
5 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,6 @@ service.interceptors.request.use(
},
(error: AxiosError) => {
// Do something with request error
console.log(error) // for debug
return Promise.reject(error)
}
)
@ -235,7 +234,6 @@ service.interceptors.response.use(
}
},
(error: AxiosError) => {
console.log('err' + error) // for debug
let { message } = error
const { t } = useI18n()
if (message === 'Network Error') {

View File

@ -169,12 +169,10 @@ const DIY_PAGE_INDEX_KEY = 'diy_page_index'
// 1.
function storePageIndex() {
debugger
return sessionStorage.setItem(DIY_PAGE_INDEX_KEY, `${selectedTemplateItem.value}`)
}
// 2.
const recoverPageIndex = () => {
debugger
//
const pageIndex = toNumber(sessionStorage.getItem(DIY_PAGE_INDEX_KEY)) || 0
//

View File

@ -91,6 +91,7 @@
highlight-current-row
@current-change="handleCurrentChange"
@selection-change="handleRowCheckboxChange"
:scroll-x="true"
>
<el-table-column type="selection" width="55" />
<el-table-column label="问卷ID" align="center" prop="id" width="80" />

View File

@ -97,6 +97,8 @@
:stripe="true"
:show-overflow-tooltip="true"
@selection-change="handleSelectionChange"
:scroll-x="true"
style="width: 100%; min-width: 1200px"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="编号" align="center" prop="id" width="80" />

View File

@ -110,6 +110,7 @@
v-loading="loading"
:data="list"
@selection-change="handleRowCheckboxChange"
:scroll-x="true"
>
<el-table-column type="selection" width="55" />
<el-table-column label="评估ID" align="center" prop="id" width="80" />