mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add dashboard
This commit is contained in:
13
dashboard/composables/useLiveDemo.ts
Normal file
13
dashboard/composables/useLiveDemo.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
export function isLiveDemo() {
|
||||
const route = useRoute();
|
||||
return route.path == '/live_demo';
|
||||
}
|
||||
|
||||
export function useLiveDemo() {
|
||||
return useFetch('/api/live_demo', {
|
||||
key: 'live_demo_project'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user