fix: 修复部分时候打开office文件提示无法保存的问题或者私密分享的office文件提示乱码的问题
This commit is contained in:
parent
07613e7924
commit
b2a56615b2
@ -2752,8 +2752,7 @@ export default {
|
||||
this.vmode
|
||||
}&path=${path}${keyword}${searchOpenFolder}${queryTagId}${basePath}${folder}`
|
||||
)
|
||||
api
|
||||
.searchFile({
|
||||
api.searchFile({
|
||||
userId: this.$store.state.user.userId,
|
||||
username: this.$store.state.user.name,
|
||||
keyword: key,
|
||||
@ -2768,11 +2767,12 @@ export default {
|
||||
pageIndex: this.pagination.pageIndex,
|
||||
pageSize: this.pagination.pageSize,
|
||||
showFolderSize: localStorage.getItem('showFolderSize'),
|
||||
})
|
||||
.then(res => {
|
||||
}).then(res => {
|
||||
this.loadData(res, onLoad)
|
||||
this.listModeSearch = true
|
||||
this.listModeSearchOpenDir = false
|
||||
}).catch(() => {
|
||||
this.tableLoading = false
|
||||
})
|
||||
} else {
|
||||
if (this.listModeSearch) {
|
||||
@ -2811,7 +2811,9 @@ export default {
|
||||
this.loadData(res, onLoad)
|
||||
this.listModeSearch = true
|
||||
this.listModeSearchOpenDir = fileId
|
||||
})
|
||||
}).catch(() => {
|
||||
this.tableLoading = false
|
||||
})
|
||||
},
|
||||
openDir(row, onLoad) {
|
||||
this.beforeLoadData(onLoad)
|
||||
@ -2828,6 +2830,8 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
this.loadData(res, onLoad)
|
||||
}).catch(() => {
|
||||
this.tableLoading = false
|
||||
})
|
||||
// this.path = row.path + row.name
|
||||
// this.path = this.path.replace(/\\/g, '/')
|
||||
@ -2867,7 +2871,9 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
this.loadData(res, onLoad)
|
||||
})
|
||||
}).catch(() => {
|
||||
this.tableLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
getQueryPath() {
|
||||
|
||||
@ -206,6 +206,12 @@ const actions = {
|
||||
})
|
||||
},
|
||||
|
||||
// update token
|
||||
setToken({ commit }, jmalToken) {
|
||||
commit('SET_TOKEN', jmalToken)
|
||||
console.log('jmalToken', jmalToken)
|
||||
},
|
||||
|
||||
// remove share token
|
||||
resetShareToken({ commit }) {
|
||||
return new Promise(resolve => {
|
||||
|
||||
@ -79,6 +79,10 @@ service.interceptors.response.use(
|
||||
location.reload()
|
||||
})
|
||||
})
|
||||
} else {
|
||||
store.dispatch('user/resetToken').then(() => {
|
||||
location.reload()
|
||||
})
|
||||
}
|
||||
}, 200)
|
||||
} else {
|
||||
@ -90,6 +94,9 @@ service.interceptors.response.use(
|
||||
}
|
||||
return Promise.reject()
|
||||
} else {
|
||||
if (response.headers['jmal-token']) {
|
||||
store.dispatch('user/setToken', response.headers['jmal-token'])
|
||||
}
|
||||
let message = ''
|
||||
if (res.message) {
|
||||
message = res.message.toString()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user