在我的应用程序的build中,当从根dir加载index.html或由服务器承载时,我会得到这个错误:
ERROR Error: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///G:/#/' cannot be created in a document with origin 'null' and URL 'file:/