Merge pull request #322 from jamebal/dev

fix: 修复未登录的情况下无法查看分享链接里文档的问题
This commit is contained in:
jmal 2024-11-30 15:16:57 +08:00 committed by GitHub
commit f286d3b7ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,9 @@ export default {
},
methods: {
loadHistoryList(id) {
if (!this.$store.state.user.token || !this.$store.state.user.name) {
return
}
historyApi.fileHistoryList({fileId: id, username: this.$store.state.user.name, pageIndex: this.historyPageIndex, pageSize: this.historyPageSize}).then((res) => {
if (res.count && res.count > 0) {
this.fileHistoryList = res.data