jeecgboot-vue3 的 ReferenceError: Cannot access 'pageWrapper' before initialization 錯誤問題
問題描述
基於 jeecgboot-vue3 框架進行開發時,不定期在瀏覽器控制檯打印出 ReferenceError: Cannot access 'pageWrapper' before initialization at index.ts:7:40
錯誤,且頁面一直加載中,報錯如圖:
解決方案
可參考 ReferenceError: Cannot access 'pageWrapper' before initialization 解決辦法的討論
最終代碼解決方案如下:
https://github.com/zhjphp/jeecgboot-vue3/commit/53f44db558fb7f83cb54b73470164b48b2b31a08