-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from netervati/fix/model-persistence
Ensure model list changes when switching apps
- Loading branch information
Showing
7 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
export default function (): string { | ||
const route = useRoute(); | ||
|
||
if (typeof route.params.urlpath === 'string') { | ||
return route.params.urlpath; | ||
} | ||
|
||
return ''; | ||
export default function (): Ref<string> { | ||
return useState('app_api_key'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default defineNuxtRouteMiddleware((to, _from) => { | ||
let updated; | ||
|
||
if (['/', '/dashboard', '/docs', '/login'].includes(to.path)) { | ||
return; | ||
} | ||
|
||
if (typeof to.params.urlpath === 'string') { | ||
updated = to.params.urlpath; | ||
} else { | ||
updated = ''; | ||
} | ||
|
||
useAppRefKey().value = updated; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e9a8580
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pseudo-rest-api – ./
pseudo-rest-api.vercel.app
pseudo-rest-api-netervati.vercel.app
pseudo-rest-api-git-main-netervati.vercel.app
pseudorestapi.com
www.pseudorestapi.com