diff --git a/src/resources/assets/js/historyUtil.js b/src/resources/assets/js/historyUtil.js index fdfb0ae60508fdeb29594fb74260a1c8b0dc426d..ba4b95585debdf1a75c89bfb1a669c371a88333b 100644 --- a/src/resources/assets/js/historyUtil.js +++ b/src/resources/assets/js/historyUtil.js @@ -66,7 +66,7 @@ HistoryUtil.install = function (Vue, options) { let name = defaultName; let hasBack = false; const fromPageList = this.$route.meta.fromPageList; - 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) {