fix: extension builder preview was in reload loop (#3643)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -15,6 +15,7 @@ const DynamicComponent = {
|
||||
const path = `/${name}/`
|
||||
const routesPath = `/${name}/static/routes.json`
|
||||
if (this.$router.getRoutes().some(r => r.path === path)) return
|
||||
if (this.$route.fullPath.startsWith('/extensions/builder/preview')) return
|
||||
fetch(routesPath)
|
||||
.then(async res => {
|
||||
if (!res.ok) throw new Error('No dynamic routes found')
|
||||
|
||||
Reference in New Issue
Block a user