parent
a7ee4aabcb
commit
23f106a0c1
26 changed files with 628 additions and 573 deletions
12
packages/frontend/src/_boot_.ts
Normal file
12
packages/frontend/src/_boot_.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// https://vitejs.dev/config/build-options.html#build-modulepreload
|
||||
import 'vite/modulepreload-polyfill';
|
||||
|
||||
import '@/style.scss';
|
||||
import { mainBoot } from './boot/main-boot';
|
||||
import { subBoot } from './boot/sub-boot';
|
||||
|
||||
if (['/share', '/auth', '/miauth'].includes(location.pathname)) {
|
||||
subBoot();
|
||||
} else {
|
||||
mainBoot();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue