fix: 修复未登录的情况下无法查看分享链接里文档的问题

This commit is contained in:
jmal 2024-11-30 15:03:49 +08:00
parent 79ee7ef318
commit b832e4fd7d

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