-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathapp.vue
More file actions
30 lines (24 loc) · 750 Bytes
/
app.vue
File metadata and controls
30 lines (24 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template>
<div :class="isDev ? 'debug-screens' : ''" class="flex flex-col h-screen">
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UNotifications />
<UModals />
</div>
</template>
<script setup lang="ts">
import { ModuleRegistry } from 'ag-grid-community';
import { AllEnterpriseModule, LicenseManager } from 'ag-grid-enterprise';
import { isDev } from '~/config';
import { isChromeBrowser } from '~/utils';
const runtimeConfig = useRuntimeConfig();
ModuleRegistry.registerModules([AllEnterpriseModule]);
LicenseManager.setLicenseKey(runtimeConfig.public.aggridLicense);
if (!isChromeBrowser()) {
alert('为了更好的用户体验,推荐使用 Chrome 浏览器。');
}
</script>
<style>
@import 'style.css';
</style>