diff --git a/src/resources/assets/js/historyUtil.js b/src/resources/assets/js/historyUtil.js index ba4b95585debdf1a75c89bfb1a669c371a88333b..6d6b190d8b3c07d9f3d6a51fb5b9cea18c1a373e 100644 --- a/src/resources/assets/js/historyUtil.js +++ b/src/resources/assets/js/historyUtil.js @@ -34,7 +34,7 @@ HistoryUtil.install = function (Vue, options) { Vue.prototype.$back = function (defaultPath) { const fromPageList = this.$route.meta.fromPageList; let backPath = defaultPath; - let index = fromPageList.length - 1; + let index = fromPageList?.length - 1; if (fromPageList && fromPageList.length > 0) { while (index >= 0) { if (this.$route.path != fromPageList[index].path) {