問題出在馬虎大意,因為項目預設的路徑是 http://localhost:8080/#/web/business 然後删除後面路徑想跳轉到另外的地方後發現報錯 vue 報錯 Uncaught SyntaxError: Unexpected token < vue 報錯 Uncaught SyntaxError: Unexpected token < 結果是多删除了/#, 因為是hash模式是以 必須要加 加上後正常了