Skip to content

Commit

Permalink
修正导出excel丢失动态颜色的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NoneDay committed Nov 22, 2023
1 parent e22fe02 commit 7adba84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion front/src/router/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ axios.interceptors.response.use(async res => {
//如果在白名单里则自行catch逻辑处理
if (statusWhiteList.includes(status)) return Promise.reject(res);
//如果是401则跳转到登录页面
if (status === 401){

if (status === 401 && res.config.url!='/user/login'){
if(res.headers['token-expired']=='true' || cur_message().indexOf("过期")>=0 ){
// Create new promise to handle exponential backoff
await store.dispatch("RefreshToken")
Expand Down
2 changes: 1 addition & 1 deletion front/src/views/rpt_design/utils/export_excel.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function find_style(tbl,rowNo,colNo,cur_tbl_class_dict){
let one=tbl.abs_to_design[idx]
let cur_ret={}
if(one.row[0]<=rowNo && rowNo<=one.row[1] && one.col[0]<=colNo && colNo<=one.col[1]){
Object.assign(cur_ret,default_css,cur_tbl_class_dict[tbl.loc_style[one.cell+"_S"] ??""],cur_tbl_class_dict[tbl.loc_style[one.cell+"_D"] ??""]
Object.assign(cur_ret,default_css,cur_tbl_class_dict[tbl.loc_style[one.cell+"_S"] ??""],cur_tbl_class_dict[tbl.loc_style[`${rowNo}_${colNo}_D`] ??""]
)
return cur_ret
}
Expand Down

0 comments on commit 7adba84

Please sign in to comment.