功能概要:
集 路由、状态管理、本地存储、依赖注入于一体。
入口:
// Vue3
const App = createApp({
mounted () {
global.init();
},
...
})
// Get for vue3
const App = createGetApp({
title: C.appName,
initialRoute: AppPages.initial,
initialBinding: InitialBinding(),
getPages: AppPages.routes,
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: Get.put(ThemePref()).themeMode,
debugShowCheckedModeBanner: false,
});