From 0e475765b6980c8db77a65e88f64e3ebddc59ed8 Mon Sep 17 00:00:00 2001 From: yaojn Date: Wed, 22 Nov 2023 10:03:24 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=8B=E6=A6=BB=E9=A1=B5=E9=9D=A2=E8=BF=94=E5=9B=9EfromPageL?= =?UTF-8?q?ist=E4=B8=BA=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/assets/js/historyUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/assets/js/historyUtil.js b/src/resources/assets/js/historyUtil.js index ba4b9558..6d6b190d 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) { -- Gitee