fix: 修复未登录的情况下无法查看分享链接里文档的问题
This commit is contained in:
parent
79ee7ef318
commit
b832e4fd7d
@ -130,6 +130,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadHistoryList(id) {
|
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) => {
|
historyApi.fileHistoryList({fileId: id, username: this.$store.state.user.name, pageIndex: this.historyPageIndex, pageSize: this.historyPageSize}).then((res) => {
|
||||||
if (res.count && res.count > 0) {
|
if (res.count && res.count > 0) {
|
||||||
this.fileHistoryList = res.data
|
this.fileHistoryList = res.data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user