diff --git a/src/components/HistoryPopover/index.vue b/src/components/HistoryPopover/index.vue index 691270a..1e3a95a 100644 --- a/src/components/HistoryPopover/index.vue +++ b/src/components/HistoryPopover/index.vue @@ -143,6 +143,9 @@ export default { }) }, loadHistoryPathList(pathname) { + if (!this.$store.getters.token) { + return + } historyApi.fileHistoryPathList({path: encodeURI(pathname), username: this.$store.state.user.name, pageIndex: this.historyPageIndex, pageSize: this.historyPageSize}).then((res) => { this.fileHistoryList = res.data this.$emit('loadHistoryPathListSuccess', {res: res, pathname: pathname}) diff --git a/src/layout/index.vue b/src/layout/index.vue index c5d6818..5a08d8c 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -18,7 +18,6 @@